Add 'Reject inconsistent user name' to project push rule API
requested to merge gitlab-jh/jh-team/gitlab:add-commit-committer-name-check-to-project-push-rule-api into master
What does this MR do and why?
resolves #431676 (closed)
Add commit_committer_name_check to project push rule API
Add attribute commit_committer_name_check
to api/project_push_rule.
Changelog: changed EE: true
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 project push rules
curl --header "PRIVATE-TOKEN: glpat-bar" \
-H "Content-Type: application/json" \
-d '{"commit_committer_name_check": true}' \
"http://127.0.0.1:3000/api/v4/projects/8/push_rule"
curl -X PUT --header "PRIVATE-TOKEN: glpat-bar" \
-H "Content-Type: application/json" \
-d '{"commit_committer_name_check": false}' \
"http://127.0.0.1:3000/api/v4/projects/8/push_rule"
curl --header "PRIVATE-TOKEN: glpat-bar" \
"http://127.0.0.1:3000/api/v4/projects/8/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.