Class BranchProtectionState
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 BranchProtectionState : ResourceArgs
Constructors
View SourceBranchProtectionState()
Declaration
public BranchProtectionState()
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> |
Etag
Declaration
public Input<string> Etag { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
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<BranchProtectionRequiredPullRequestReviewsGetArgs> RequiredPullRequestReviews { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BranchProtectionRequiredPullRequestReviewsGetArgs> |
RequiredStatusChecks
Enforce restrictions for required status checks. See Required Status Checks below for details.
Declaration
public Input<BranchProtectionRequiredStatusChecksGetArgs> RequiredStatusChecks { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BranchProtectionRequiredStatusChecksGetArgs> |
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<BranchProtectionRestrictionsGetArgs> Restrictions { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BranchProtectionRestrictionsGetArgs> |