Project Push Rules
data class ProjectPushRules(val authorEmailRegex: String? = null, val branchNameRegex: String? = null, val commitCommitterCheck: Boolean? = null, val commitMessageNegativeRegex: String? = null, val commitMessageRegex: String? = null, val denyDeleteTag: Boolean? = null, val fileNameRegex: String? = null, val maxFileSize: Int? = null, val memberCheck: Boolean? = null, val preventSecrets: Boolean? = null, val rejectUnsignedCommits: Boolean? = null)
Constructors
Link copied to clipboard
constructor(authorEmailRegex: String? = null, branchNameRegex: String? = null, commitCommitterCheck: Boolean? = null, commitMessageNegativeRegex: String? = null, commitMessageRegex: String? = null, denyDeleteTag: Boolean? = null, fileNameRegex: String? = null, maxFileSize: Int? = null, memberCheck: Boolean? = null, preventSecrets: Boolean? = null, rejectUnsignedCommits: Boolean? = null)
Properties
Link copied to clipboard
All commit author emails must match this regex, e.g. @my-company.com$
.
Link copied to clipboard
All branch names must match this regex, e.g. (feature|hotfix)\/*
.
Link copied to clipboard
Users can only push commits to this repository that were committed with one of their own verified emails.
Link copied to clipboard
No commit message is allowed to match this regex, for example ssh\:\/\/
.
Link copied to clipboard
All commit messages must match this regex, e.g. Fixed \d+\..*
.
Link copied to clipboard
Deny deleting a tag.
Link copied to clipboard
All commited filenames must not match this regex, e.g. (jar|exe)$
.
Link copied to clipboard
Maximum file size (MB).
Link copied to clipboard
Restrict commits by author (email) to existing GitLab users.
Link copied to clipboard
GitLab will reject any files that are likely to contain secrets.
Link copied to clipboard
Reject commit when it’s not signed through GPG. */