Add user as maintainer when creating a project
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR changes the project creating process. It will add the user as a maintainer of the project created in the group.
This change has effect only when Developers are allowed to create a project.
It resolves the issue where a user with developer permissions creates a new project and cannot push commits (which breaks Initialize repository with a README
feature).
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Log in as a user with developer permissions in some group.
- Create a new project in the group with checked
Initialize repository with a README
. - The project should have a initial commit.
- The user should be a maintainer of the project (direct access).
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.