Class BranchProtectionArgs
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Github
Assembly: Pulumi.Github.dll
Syntax
public sealed class BranchProtectionArgs : ResourceArgs
Constructors
View SourceBranchProtectionArgs()
Declaration
public BranchProtectionArgs()
Properties
View SourceBranch
The Git branch to protect.
Declaration
public Input<string> Branch { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
EnforceAdmins
Boolean, setting this to true enforces status checks for repository administrators.
Declaration
public Input<bool> EnforceAdmins { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Repository
The GitHub repository name.
Declaration
public Input<string> Repository { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
RequiredPullRequestReviews
Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
Declaration
public Input<BranchProtectionRequiredPullRequestReviewsArgs> RequiredPullRequestReviews { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BranchProtectionRequiredPullRequestReviewsArgs> |
RequiredStatusChecks
Enforce restrictions for required status checks. See Required Status Checks below for details.
Declaration
public Input<BranchProtectionRequiredStatusChecksArgs> RequiredStatusChecks { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BranchProtectionRequiredStatusChecksArgs> |
RequireSignedCommits
Boolean, setting this to true requires all commits to be signed with GPG.
Declaration
public Input<bool> RequireSignedCommits { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Restrictions
Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
Declaration
public Input<BranchProtectionRestrictionsArgs> Restrictions { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BranchProtectionRestrictionsArgs> |