Mutations
createBranchProtectionRule
Create a new branch protection rule.
Input fields for createBranchProtectionRule
input(CreateBranchProtectionRuleInput!)
Return fields for createBranchProtectionRule
| Name | Description |
|---|---|
| The newly created BranchProtectionRule. |
| A unique identifier for the client performing the mutation. |
deleteBranchProtectionRule
Delete a branch protection rule.
Input fields for deleteBranchProtectionRule
input(DeleteBranchProtectionRuleInput!)
Return fields for deleteBranchProtectionRule
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
mergeBranch
Merge a head into a branch.
Input fields for mergeBranch
input(MergeBranchInput!)
Return fields for mergeBranch
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The resulting merge Commit. |
updateBranchProtectionRule
Update a branch protection rule.
Input fields for updateBranchProtectionRule
input(UpdateBranchProtectionRuleInput!)
Return fields for updateBranchProtectionRule
| Name | Description |
|---|---|
| The newly created BranchProtectionRule. |
| A unique identifier for the client performing the mutation. |
Objects
BranchNamePatternParameters
Parameters to be used for the branch_name_pattern rule.
Fields for BranchNamePatternParameters
| Name | Description |
|---|---|
| How this rule appears when configuring it. |
| If true, the rule will fail if the pattern matches. |
| The operator to use for matching. |
| The pattern to match with. |
BranchProtectionRule
A branch protection rule.
BranchProtectionRule Implements
Fields for BranchProtectionRule
| Name | Description |
|---|---|
| Can this branch be deleted. |
| Are force pushes allowed on this branch. |
| Is branch creation a protected operation. |
| A list of conflicts matching branches protection rule and other branch protection rules. Arguments for
|
| A list of actors able to force push for this branch protection rule. Arguments for
|
| A list of actors able to bypass PRs for this branch protection rule. Arguments for
|
| The actor who created this branch protection rule. |
| Identifies the primary key from the database. |
| Will new commits pushed to matching branches dismiss pull request review approvals. |
| The Node ID of the BranchProtectionRule object. |
| Can admins override branch protection. |
| Whether users can pull changes from upstream when the branch is locked. Set to
|