Add 'Reject inconsistent user name' to group push rule API
requested to merge gitlab-jh/jh-team/gitlab:add-api-attribute-commit-committer-name-check into master
What does this MR do and why?
resolves #431676 (closed)
add attribute commit_committer_name_check
to group push_rule API
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- add license
- call API to create/change/get group push rules
curl --header "PRIVATE-TOKEN: glpat-foo" \
-H "Content-Type: application/json" \
-d '{"commit_committer_name_check": true}' \
"http://127.0.0.1:3000/api/v4/groups/35/push_rule"
curl -X PUT --header "PRIVATE-TOKEN: glpat-foo" \
-H "Content-Type: application/json" \
-d '{"commit_committer_name_check": false}' \
"http://127.0.0.1:3000/api/v4/groups/35/push_rule"
curl --header "PRIVATE-TOKEN: glpat-foo" \
"http://127.0.0.1:3000/api/v4/groups/35/push_rule"
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.
Edited by Sink