GitlabPushRule
Schema
All properties are optional. Any undefined properties will default to the specified configDefaults.pushRules of the referenced GitlabDefaults.
For detailed info about the properties, please reference GitLab’s documentation.
| Property | Type | Required | Description |
|---|---|---|---|
| authorEmailRegex | string | No | Regex pattern that commit author email must match |
| branchNameRegex | string | No | Regex pattern that branch names must match |
| commitMessageRegex | string | No | Regex pattern that commit messages must match |
| commitMessageNegativeRegex | string | No | Regex pattern that commit messages must NOT match (known issue: currently not working properly) |
| denyDeleteTag | boolean | No | Prevent users from deleting tags |
| fileNameRegex | string | No | Regex pattern that prevents commits containing files matching the pattern |
| maxFileSize | number | No | Maximum file size in MB that can be committed (0 = unlimited) |
| memberCheck | boolean | No | Restrict commits to users who are members of the project |
| preventSecrets | boolean | No | Prevent commits that contain secrets or credentials |
| commitCommitterCheck | boolean | No | Require committer email to match authenticated user’s email |
| rejectUnsignedCommits | boolean | No | Reject commits that are not signed with GPG |