Retrieve the push rules of a project
GET
/api/v4/projects/{id}/push_rule
Retrieves the push rules of a specified project.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Responses
Section titled “ Responses ”OK
Media type application/json
object
id
integer format: int64
project_id
integer format: int64
created_at
string format: date-time
commit_message_regex
string
commit_message_negative_regex
string
branch_name_regex
string
deny_delete_tag
boolean
member_check
boolean
prevent_secrets
boolean
author_email_regex
string
file_name_regex
string
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, "project_id": 3, "created_at": "2020-08-31T15:53:00.073Z", "commit_message_regex": "Fixed \\d+\\..*", "commit_message_negative_regex": "ssh\\:\\/\\/", "branch_name_regex": "(feature|hotfix)\\/.*", "deny_delete_tag": true, "member_check": true, "prevent_secrets": true, "author_email_regex": "@my-company.com$", "file_name_regex": "(jar|exe)$", "max_file_size": 1024, "commit_committer_check": true, "commit_committer_name_check": true, "reject_unsigned_commits": true, "reject_non_dco_commits": true}Bad Request
Not found