Skip to content

Commit

Permalink
Merge pull request #96 from MicroFocus/switchToDeveloperRole
Browse files Browse the repository at this point in the history
Switch back to maintainer
  • Loading branch information
TiutiuMadalin authored Aug 9, 2023
2 parents 69c5ae5 + 82567a9 commit d866a23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Example:

http://myGitLabServer.myCompany.com:30080
##### gitlab.personalAccessToken
A personal access token for a particular user in GitLab, the user should be a member of the projects/group with DEVELOPER rights and the scopes of the token should be read/write over API and read over repository. This is a sensitive token. See the 'Password Encryption' section below.
A personal access token for a particular user in GitLab, the user should be a member of the projects/group with MAINTAINER rights and the scopes of the token should be read/write over API and read over repository. This is a sensitive token. See the 'Password Encryption' section below.
##### gitlab.testResultsFilePattern
A 'glob:pattern' or 'regex:pattern' pattern for finding the test result files inside GitLab job artifact ZIP.
For complete documentation about the applicable patterns see [java.nio.file.FileSystem::getPathMatcher](https://docs.oracle.com/javase/8/docs/api/java/nio/file/FileSystem.html#getPathMatcher-java.lang.String-)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ CIJobsList getJobList(boolean includeParameters, Long workspaceId) {
String projectNames ="";
try {
ProjectFilter filter = new ProjectFilter();
filter.withMembership(true).withMinAccessLevel(AccessLevel.DEVELOPER);
filter.withMembership(true).withMinAccessLevel(AccessLevel.MAINTAINER);
List<Project> projectsFilters = gitLabApi.getProjectApi().getProjects(filter);
log.info("There are only "+ projectsFilters.size() +" projects with access level => MAINTAINER for the integrated user");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void addHooksToNewProjects() {
try {

ProjectFilter filter = new ProjectFilter().withIdAfter(lastUpdatedProjectId).withMembership(true)
.withMinAccessLevel(AccessLevel.DEVELOPER);
.withMinAccessLevel(AccessLevel.MAINTAINER);
List<Project> projects = gitLabApi.getProjectApi().getProjects(filter);

if (projects.size() > 0) {
Expand Down

0 comments on commit d866a23

Please sign in to comment.