Skip to content

Add support for groups that have only digits in their names and contain no alphabetic characters #467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -914,13 +914,13 @@
return new StandardListBoxModel().includeEmptyValue();
}
try {
for (Project p : gitLabApi
.getProjectApi()
.getUserProjects(projectOwner, new ProjectFilter().withOwned(true))) {
for (Project p : gitLabApi.getGroupApi().getProjects(projectOwner)) {

Check warning on line 917 in src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSource.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 917 is not covered by tests
result.add(p.getPathWithNamespace());
}
} catch (GitLabApiException e) {
for (Project p : gitLabApi.getGroupApi().getProjects(projectOwner)) {
for (Project p : gitLabApi

Check warning on line 921 in src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSource.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 921 is only partially covered, one branch is missing
.getProjectApi()
.getUserProjects(projectOwner, new ProjectFilter().withOwned(true))) {
result.add(p.getPathWithNamespace());
}
}
Expand Down
Loading