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.
Create a ProjectPushRules Resource
new ProjectPushRules(name: string, args: ProjectPushRulesArgs, opts?: CustomResourceOptions);def ProjectPushRules(resource_name, opts=None, author_email_regex=None, branch_name_regex=None, commit_message_regex=None, deny_delete_tag=None, file_name_regex=None, max_file_size=None, member_check=None, prevent_secrets=None, project=None, __props__=None);func NewProjectPushRules(ctx *Context, name string, args ProjectPushRulesArgs, opts ...ResourceOption) (*ProjectPushRules, error)public ProjectPushRules(string name, ProjectPushRulesArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ProjectPushRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectPushRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectPushRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ProjectPushRules Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ProjectPushRules resource accepts the following input properties:
- Project string
The name or id of the project to add the push rules to.
- string
All commit author emails must match this regex, e.g. “@my-company.com$”
- Branch
Name stringRegex All branch names must match this regex, e.g. “(feature|hotfix)\/*”
- Commit
Message stringRegex All commit messages must match this regex, e.g. “Fixed \d+..*”
- Deny
Delete boolTag Deny deleting a tag
- File
Name stringRegex All commited filenames must not match this regex, e.g. “(jar|exe)$”
- Max
File intSize Maximum file size (MB)
- Member
Check bool Restrict commits by author (email) to existing GitLab users
- Prevent
Secrets bool GitLab will reject any files that are likely to contain secrets
- Project string
The name or id of the project to add the push rules to.
- string
All commit author emails must match this regex, e.g. “@my-company.com$”
- Branch
Name stringRegex All branch names must match this regex, e.g. “(feature|hotfix)\/*”
- Commit
Message stringRegex All commit messages must match this regex, e.g. “Fixed \d+..*”
- Deny
Delete boolTag Deny deleting a tag
- File
Name stringRegex All commited filenames must not match this regex, e.g. “(jar|exe)$”
- Max
File intSize Maximum file size (MB)
- Member
Check bool Restrict commits by author (email) to existing GitLab users
- Prevent
Secrets bool GitLab will reject any files that are likely to contain secrets
- project string
The name or id of the project to add the push rules to.
- string
All commit author emails must match this regex, e.g. “@my-company.com$”
- branch
Name stringRegex All branch names must match this regex, e.g. “(feature|hotfix)\/*”
- commit
Message stringRegex All commit messages must match this regex, e.g. “Fixed \d+..*”
- deny
Delete booleanTag Deny deleting a tag
- file
Name stringRegex All commited filenames must not match this regex, e.g. “(jar|exe)$”
- max
File numberSize Maximum file size (MB)
- member
Check boolean Restrict commits by author (email) to existing GitLab users
- prevent
Secrets boolean GitLab will reject any files that are likely to contain secrets
- project str
The name or id of the project to add the push rules to.
- str
All commit author emails must match this regex, e.g. “@my-company.com$”
- branch_
name_ strregex All branch names must match this regex, e.g. “(feature|hotfix)\/*”
- commit_
message_ strregex All commit messages must match this regex, e.g. “Fixed \d+..*”
- deny_
delete_ booltag Deny deleting a tag
- file_
name_ strregex All commited filenames must not match this regex, e.g. “(jar|exe)$”
- max_
file_ floatsize Maximum file size (MB)
- member_
check bool Restrict commits by author (email) to existing GitLab users
- prevent_
secrets bool GitLab will reject any files that are likely to contain secrets
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectPushRules resource produces the following output properties:
Look up an Existing ProjectPushRules Resource
Get an existing ProjectPushRules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProjectPushRulesState, opts?: CustomResourceOptions): ProjectPushRulesstatic get(resource_name, id, opts=None, author_email_regex=None, branch_name_regex=None, commit_message_regex=None, deny_delete_tag=None, file_name_regex=None, max_file_size=None, member_check=None, prevent_secrets=None, project=None, __props__=None);func GetProjectPushRules(ctx *Context, name string, id IDInput, state *ProjectPushRulesState, opts ...ResourceOption) (*ProjectPushRules, error)public static ProjectPushRules Get(string name, Input<string> id, ProjectPushRulesState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- string
All commit author emails must match this regex, e.g. “@my-company.com$”
- Branch
Name stringRegex All branch names must match this regex, e.g. “(feature|hotfix)\/*”
- Commit
Message stringRegex All commit messages must match this regex, e.g. “Fixed \d+..*”
- Deny
Delete boolTag Deny deleting a tag
- File
Name stringRegex All commited filenames must not match this regex, e.g. “(jar|exe)$”
- Max
File intSize Maximum file size (MB)
- Member
Check bool Restrict commits by author (email) to existing GitLab users
- Prevent
Secrets bool GitLab will reject any files that are likely to contain secrets
- Project string
The name or id of the project to add the push rules to.
- string
All commit author emails must match this regex, e.g. “@my-company.com$”
- Branch
Name stringRegex All branch names must match this regex, e.g. “(feature|hotfix)\/*”
- Commit
Message stringRegex All commit messages must match this regex, e.g. “Fixed \d+..*”
- Deny
Delete boolTag Deny deleting a tag
- File
Name stringRegex All commited filenames must not match this regex, e.g. “(jar|exe)$”
- Max
File intSize Maximum file size (MB)
- Member
Check bool Restrict commits by author (email) to existing GitLab users
- Prevent
Secrets bool GitLab will reject any files that are likely to contain secrets
- Project string
The name or id of the project to add the push rules to.
- string
All commit author emails must match this regex, e.g. “@my-company.com$”
- branch
Name stringRegex All branch names must match this regex, e.g. “(feature|hotfix)\/*”
- commit
Message stringRegex All commit messages must match this regex, e.g. “Fixed \d+..*”
- deny
Delete booleanTag Deny deleting a tag
- file
Name stringRegex All commited filenames must not match this regex, e.g. “(jar|exe)$”
- max
File numberSize Maximum file size (MB)
- member
Check boolean Restrict commits by author (email) to existing GitLab users
- prevent
Secrets boolean GitLab will reject any files that are likely to contain secrets
- project string
The name or id of the project to add the push rules to.
- str
All commit author emails must match this regex, e.g. “@my-company.com$”
- branch_
name_ strregex All branch names must match this regex, e.g. “(feature|hotfix)\/*”
- commit_
message_ strregex All commit messages must match this regex, e.g. “Fixed \d+..*”
- deny_
delete_ booltag Deny deleting a tag
- file_
name_ strregex All commited filenames must not match this regex, e.g. “(jar|exe)$”
- max_
file_ floatsize Maximum file size (MB)
- member_
check bool Restrict commits by author (email) to existing GitLab users
- prevent_
secrets bool GitLab will reject any files that are likely to contain secrets
- project str
The name or id of the project to add the push rules to.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.