Updating...
Skip to main content
Filter your search by category. Current category:
All
All
Knowledge Base
Service Catalog
Search the client portal
Search
Sign In
Show Applications Menu
IT
Sign In
Search
Help
Services
Knowledge Base
More Applications
Skip to Knowledge Base content
Search
Articles
Blank
Knowledge Base
University Development Environment
GitLab
Best Practice: GitLab / Merge request approvals
Best Practice: GitLab / Merge request approvals
Statement of Best Practice
Merge requests will require a single approval from a valid user before the merge request can be merged. The approver cannot be the author of the merge request or someone one who has made commits to the merge request
Contact
ADIAS/Linux Admin
Reason for Best Practice
This change is being made to satisfy an ISO request to ensure separation of duties for new merge requests — in other words, a single user cannot push code from a feature branch all the way to production without another set of eyes on the code, with required approval
Entities Affected by Best Practice
Information Technology Services users of GitLab for projects contained in the UIT GitLab group
Responsibilities
If a user cannot find a team member to approve a merge request, it is expected a suitable analog on another development or operations team will be found
Definitions
A "reviewer" is a user who is assigned to approve a merge request. You may assign reviewers directly to a user or users as merge requests have been assigned in the past, but there is no need to assign the merge request to another user
Best Practice
Merge requests will require a single approval from a valid user before the merge request can be merged. The approver cannot be the author of the merge request or someone one who has made commits to the merge request
It is important to understand that approving a merge request is a discrete action from merging the code itself
It is recommended that after approval is made for a merge request, the merge request creator initiates the merge. The reason for this is the user who completes the merge is adding a commit when merging, and therefore will then be locked out of downstream approvals. In short: users who create merge requests should now generally push the button to merge it after it is approved
Related Documents, Forms, and Tools
More information on this functionality in Gitlab may be found here:
https://docs.gitlab.com/ee/user/project/merge_requests/approvals/index.html
Revision History
7/20/2022: Initial revision
Sign in to leave feedback
0 reviews
Blank
Blank
Blank
Blank
Print Article
Deleting...
×
Share
Recipient(s)
- separate email addresses with a comma
Message
Press Alt + 0 within the editor to access accessibility instructions, or press Alt + F10 to access the menu.
Check out this article I found in the IT knowledge base.<br /><br /><a href="https://miamioh.teamdynamix.com/TDClient/1813/Portal/KB/ArticleDet?ID=145159">https://miamioh.teamdynamix.com/TDClient/1813/Portal/KB/ArticleDet?ID=145159</a><br /><br />Best Practice: GitLab / Merge request approvals