Skip to content

Add 'Reject inconsistent user name' to group push rule API

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
iShot_2023-11-10_03.47.41 image

How to set up and validate locally

  1. add license
  2. 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.

backend

Edited by Sink

Merge request reports