| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
| `deny_delete_tag`**[STARTER]** | boolean | no | Deny deleting a tag |
| `member_check`**[STARTER]** | boolean | no | Restrict commits by author (email) to existing GitLab users |
| `prevent_secrets`**[STARTER]** | boolean | no | GitLab will reject any files that are likely to contain secrets |
| `commit_message_regex`**[STARTER]** | string | no | All commit messages must match this, e.g. `Fixed \d+\..*` |
| `branch_name_regex`**[STARTER]** | string | no | All branch names must match this, e.g. `(feature|hotfix)\/*` |
| `author_email_regex`**[STARTER]** | string | no | All commit author emails must match this, e.g. `@my-company.com$` |
| `file_name_regex`**[STARTER]** | string | no | All commited filenames must **not** match this, e.g. `(jar|exe)$` |
| `max_file_size`**[STARTER]** | integer | no | Maximum file size (MB) |
| `commit_committer_check`**[PREMIUM]** | boolean | no | Users can only push commits to this repository that were committed with one of their own verified emails. |
### Edit project push rule
...
...
@@ -1639,17 +1646,18 @@ Edits a push rule for a specified project.
PUT /projects/:id/push_rule
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
| `deny_delete_tag` | boolean | no | Deny deleting a tag |
| `member_check` | boolean | no | Restrict commits by author (email) to existing GitLab users |
| `prevent_secrets` | boolean | no | GitLab will reject any files that are likely to contain secrets |
| `commit_message_regex` | string | no | All commit messages must match this, e.g. `Fixed \d+\..*` |
| `branch_name_regex` | string | no | All branch names must match this, e.g. `(feature|hotfix)\/*` |
| `author_email_regex` | string | no | All commit author emails must match this, e.g. `@my-company.com$` |
| `file_name_regex` | string | no | All commited filenames must **not** match this, e.g. `(jar|exe)$` |
| `max_file_size` | integer | no | Maximum file size (MB) |
| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
| `deny_delete_tag`**[STARTER]** | boolean | no | Deny deleting a tag |
| `member_check`**[STARTER]** | boolean | no | Restrict commits by author (email) to existing GitLab users |
| `prevent_secrets`**[STARTER]** | boolean | no | GitLab will reject any files that are likely to contain secrets |
| `commit_message_regex`**[STARTER]** | string | no | All commit messages must match this, e.g. `Fixed \d+\..*` |
| `branch_name_regex`**[STARTER]** | string | no | All branch names must match this, e.g. `(feature|hotfix)\/*` |
| `author_email_regex`**[STARTER]** | string | no | All commit author emails must match this, e.g. `@my-company.com$` |
| `file_name_regex`**[STARTER]** | string | no | All commited filenames must **not** match this, e.g. `(jar|exe)$` |
| `max_file_size`**[STARTER]** | integer | no | Maximum file size (MB) |
| `commit_committer_check`**[PREMIUM]** | boolean | no | Users can only push commits to this repository that were committed with one of their own verified emails. |