stable

Clone or download

Read-only

Get only Gitlab projects that we maintain

This is part of story #17178 reference my gitlab repositories in my tuleap project When an user select a gitlab project, he must be the maintainer of that project, otherwise, when we will add webhook on this project, that will fail because the user will not have rights to do so. How to test: - On an Gitlab instance or gitlab.com, have an user with an access token (go to user setting and generate it) - Have some Gitlab projects on your Gitlab instance, in which you must be owner or maintainer, and in others developper or guest - Have Gitlab plugin - To be Git admin - Go to Git, integrate a gitlab project - Enter your API key and server url Expected results: - In the list of Gitlab project, you should only see projects for which you are maintainer or owner. 'min_access_level=40' in the api request means 'to be at least maintainer of the projects'[0]. [0] https://docs.gitlab.com/ee/api/members.html#valid-access-levels https://docs.gitlab.com/ee/api/projects.html#list-all-projects Change-Id: Ifc9b043e46925bd2a2c704a8585c217da78fb958

Modified Files

Name
M plugins/git/scripts/repositories/src/gitlab/gitlab-credentials-helper.js +1 −1 Go to diff View file
M plugins/git/scripts/repositories/src/gitlab/gitlab-credentials-helper.test.js +2 −2 Go to diff View file
M plugins/git/scripts/repositories/src/store/actions.test.js +4 −2 Go to diff View file