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.

PropertyTypeRequiredDescription
authorEmailRegexstringNoRegex pattern that commit author email must match
branchNameRegexstringNoRegex pattern that branch names must match
commitMessageRegexstringNoRegex pattern that commit messages must match
commitMessageNegativeRegexstringNoRegex pattern that commit messages must NOT match (known issue: currently not working properly)
denyDeleteTagbooleanNoPrevent users from deleting tags
fileNameRegexstringNoRegex pattern that prevents commits containing files matching the pattern
maxFileSizenumberNoMaximum file size in MB that can be committed (0 = unlimited)
memberCheckbooleanNoRestrict commits to users who are members of the project
preventSecretsbooleanNoPrevent commits that contain secrets or credentials
commitCommitterCheckbooleanNoRequire committer email to match authenticated user’s email
rejectUnsignedCommitsbooleanNoReject commits that are not signed with GPG