Class ProjectPushRules
This resource allows you to create and manage push rules for your GitLab projects. For further information on push rules, consult the gitlab documentation.
Inherited Members
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class ProjectPushRules : CustomResource
Constructors
View SourceProjectPushRules(String, ProjectPushRulesArgs, CustomResourceOptions)
Create a ProjectPushRules resource with the given unique name, arguments, and options.
Declaration
public ProjectPushRules(string name, ProjectPushRulesArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ProjectPushRulesArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAuthorEmailRegex
All commit author emails must match this regex, e.g. "@my-company.com$"
Declaration
public Output<string> AuthorEmailRegex { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
BranchNameRegex
All branch names must match this regex, e.g. "(feature|hotfix)/*"
Declaration
public Output<string> BranchNameRegex { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CommitMessageRegex
All commit messages must match this regex, e.g. "Fixed \d+..*"
Declaration
public Output<string> CommitMessageRegex { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DenyDeleteTag
Deny deleting a tag
Declaration
public Output<bool?> DenyDeleteTag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
FileNameRegex
All commited filenames must not match this regex, e.g. "(jar|exe)$"
Declaration
public Output<string> FileNameRegex { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MaxFileSize
Maximum file size (MB)
Declaration
public Output<int?> MaxFileSize { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
MemberCheck
Restrict commits by author (email) to existing GitLab users
Declaration
public Output<bool?> MemberCheck { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
PreventSecrets
GitLab will reject any files that are likely to contain secrets
Declaration
public Output<bool?> PreventSecrets { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Project
The name or id of the project to add the push rules to.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ProjectPushRulesState, CustomResourceOptions)
Get an existing ProjectPushRules resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ProjectPushRules Get(string name, Input<string> id, ProjectPushRulesState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ProjectPushRulesState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ProjectPushRules |