Retrieve the push rules of a group
GET
/api/v4/groups/{id}/push_rule
Retrieves the push rules of a specified group.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
string
The ID or URL-encoded path of a group
Responses
Section titled “ Responses ”OK
Media type application/json
object
id
integer format: int64
created_at
string format: date-time
commit_message_regex
string
commit_message_negative_regex
string
branch_name_regex
string
author_email_regex
string
file_name_regex
string
deny_delete_tag
boolean
member_check
boolean
prevent_secrets
boolean
max_file_size
integer
commit_committer_check
boolean
commit_committer_name_check
boolean
reject_unsigned_commits
boolean
reject_non_dco_commits
boolean
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}Bad Request
Not found