Skip to content

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

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
image image

How to set up and validate locally

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

Merge request reports

Loading