Skip to content
Snippets Groups Projects

Iss #156 - Add handling of Gitlab repo field from projects API

Merged Iss #156 - Add handling of Gitlab repo field from projects API
1 unresolved thread
Merged Martin Lowe requested to merge malowe/main/156 into main
1 unresolved thread
  • Iss #156 (closed) - Add handling of Gitlab repo field from projects API

In cases where there are dash repositories added outside the typical Gitlab organization, they should now be detected properly as a project.

Resolves #156 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
76 76 case GITLAB:
77 77 return availableProjects
78 78 .stream()
79 .filter(p -> projectNamespace.startsWith(p.getGitlab().getProjectGroup() + "/")
80 && p.getGitlab().getIgnoredSubGroups().stream().noneMatch(sg -> projectNamespace.startsWith(sg + "/")))
79 .filter(p -> p.getGitlabRepos().stream().anyMatch(re -> re.getUrl() != null && re.getUrl().endsWith(repoUrl))
80 || (projectNamespace.startsWith(p.getGitlab().getProjectGroup() + "/") && p
81 .getGitlab()
82 .getIgnoredSubGroups()
83 .stream()
84 .noneMatch(sg -> projectNamespace.startsWith(sg + "/"))))
  • Martin Lowe added 1 commit

    added 1 commit

    • 8d456262 - Separate out logic for matching Github/lab repos into own methods

    Compare with previous version

  • Martin Lowe requested review from @zacharysabourin

    requested review from @zacharysabourin

  • Zachary Sabourin approved this merge request

    approved this merge request

  • merged

  • Martin Lowe mentioned in commit bec0588d

    mentioned in commit bec0588d

  • Please register or sign in to reply
    Loading