GroupPushRules

data class GroupPushRules(val authorEmailRegex: String? = null, val branchNameRegex: String? = null, val commitCommitterCheck: Boolean? = null, val commitCommitterNameCheck: 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 rejectNonDcoCommits: Boolean? = null, val rejectUnsignedCommits: Boolean? = null)

Constructors

Link copied to clipboard
constructor(authorEmailRegex: String? = null, branchNameRegex: String? = null, commitCommitterCheck: Boolean? = null, commitCommitterNameCheck: Boolean? = null, commitMessageNegativeRegex: String? = null, commitMessageRegex: String? = null, denyDeleteTag: Boolean? = null, fileNameRegex: String? = null, maxFileSize: Int? = null, memberCheck: Boolean? = null, preventSecrets: Boolean? = null, rejectNonDcoCommits: Boolean? = null, rejectUnsignedCommits: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

All commit author emails must match this regex, e.g. @my-company.com$.

Link copied to clipboard
val branchNameRegex: String? = null

All branch names must match this regex, e.g. (feature|hotfix)\/*.

Link copied to clipboard

Only commits pushed using verified emails are allowed.

Link copied to clipboard

Users can only push commits to this repository if the commit author name is consistent with their GitLab account name.

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
val denyDeleteTag: Boolean? = null

Deny deleting a tag.

Link copied to clipboard
val fileNameRegex: String? = null

Filenames matching the regular expression provided in this attribute are not allowed, for example, (jar|exe)$.

Link copied to clipboard
val maxFileSize: Int? = null

Maximum file size (MB) allowed.

Link copied to clipboard
val memberCheck: Boolean? = null

Allows only GitLab users to author commits.

Link copied to clipboard
val preventSecrets: Boolean? = null

GitLab will reject any files that are likely to contain secrets.

Link copied to clipboard

Reject commit when it’s not DCO certified.

Link copied to clipboard

Only commits signed through GPG are allowed. */