GetProjectPushRule

data class GetProjectPushRule(val authorEmailRegex: String, val branchNameRegex: String, val commitCommitterCheck: Boolean, val commitMessageNegativeRegex: String, val commitMessageRegex: String, val denyDeleteTag: Boolean, val fileNameRegex: String, val maxFileSize: Int, val memberCheck: Boolean, val preventSecrets: Boolean, val rejectUnsignedCommits: Boolean)

Constructors

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

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

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 committed 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. */