Update push rules of a group
Updates the push rules for a specified group.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The ID or URL-encoded path of a group
Request Body
Section titled “ Request Body ”object
Deny deleting a tag
Restrict commits by author (email) to existing GitLab users
GitLab will reject any files that are likely to contain secrets
All commit messages must match this
Example
Fixed \d+\..*No commit message is allowed to match this
Example
ssh\:\/\/All branches names must match this
Example
(feature|hotfix)\/.*All commit author emails must match this
Example
@my-company.com$All committed filenames must not match this
Example
(jar|exe)$Maximum file size (MB)
Example
20Users can only push commits to this repository if the committer email is one of their own verified emails.
Example
trueUsers can only push commits to this repository if the commit author name is consistent with their GitLab account name.
Example
trueReject commit when it’s not signed.
Example
trueReject commit when it’s not DCO certified.
Example
trueResponses
Section titled “ Responses ”OK
object
Example
{ "id": 2, "created_at": "2020-08-31T15:53:00.073Z", "commit_message_regex": "[a-zA-Z]", "commit_message_negative_regex": "[x+]", "branch_name_regex": "[a-z]", "author_email_regex": "^[A-Za-z0-9.]+@gitlab.com$", "file_name_regex": "(exe)$", "member_check": true, "max_file_size": 100}Validation error
Not found
Unprocessable entity