ProjectPushRules

data class ProjectPushRules(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

Users can only push commits to this repository that were committed with one of their own verified emails.

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, e.g. 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

All committed filenames must not match this regex, e.g. (jar|exe)$.

Link copied to clipboard
val maxFileSize: Int? = null

Maximum file size (MB).

Link copied to clipboard
val memberCheck: Boolean? = null

Restrict commits by author (email) to existing GitLab users.

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

Reject commit when it’s not signed through GPG. */