Mutations
createBranchProtectionRule
Create a new branch protection rule.
Eingabefelder für createBranchProtectionRule
input(CreateBranchProtectionRuleInput!)
Rückgabefelder für createBranchProtectionRule
| Name | BESCHREIBUNG |
|---|---|
| The newly created BranchProtectionRule. |
| A unique identifier for the client performing the mutation. |
deleteBranchProtectionRule
Delete a branch protection rule.
Eingabefelder für deleteBranchProtectionRule
input(DeleteBranchProtectionRuleInput!)
Rückgabefelder für deleteBranchProtectionRule
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
mergeBranch
Merge a head into a branch.
Eingabefelder für mergeBranch
input(MergeBranchInput!)
Rückgabefelder für mergeBranch
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The resulting merge Commit. |
updateBranchProtectionRule
Update a branch protection rule.
Eingabefelder für updateBranchProtectionRule
input(UpdateBranchProtectionRuleInput!)
Rückgabefelder für updateBranchProtectionRule
| Name | BESCHREIBUNG |
|---|---|
| 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.
Felder für BranchNamePatternParameters
| Name | BESCHREIBUNG |
|---|---|
| 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 Wird implementiert
Felder für BranchProtectionRule
| Name | BESCHREIBUNG |
|---|---|
| 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. Argumente für
|
| A list of actors able to force push for this branch protection rule. Argumente für
|
| A list of actors able to bypass PRs for this branch protection rule. Argumente für
|
| 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
|
| Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. |
| Repository refs that are protected by this rule. Argumente für
|
| Identifies the protection rule pattern. |
| A list push allowances for this branch protection rule. Argumente für
|
| The repository associated with this branch protection rule. |
| Whether the most recent push must be approved by someone other than the person who pushed it. |
| Number of approving reviews required to update matching branches. |
| List of required deployment environments that must be deployed successfully to update matching branches. |
| List of required status check contexts that must pass for commits to be accepted to matching branches. |
| List of required status checks that must pass for commits to be accepted to matching branches. |
| Are approving reviews required to update matching branches. |
| Are reviews from code owners required to update matching branches. |
| Are commits required to be signed. |
| Are conversations required to be resolved before merging. |
| Does this branch require deployment to specific environments before merging. |
| Are merge commits prohibited from being pushed to this branch. |
| Are status checks required to update matching branches. |
| Are branches required to be up to date before merging. |
| Is pushing to matching branches restricted. |
| Is dismissal of pull request reviews restricted. |
| A list review dismissal allowances for this branch protection rule. Argumente für
|
BranchProtectionRuleConflict
A conflict between two branch protection rules.
Felder für BranchProtectionRuleConflict
| Name | BESCHREIBUNG |
|---|---|
| Identifies the branch protection rule. |
| Identifies the conflicting branch protection rule. |
| Identifies the branch ref that has conflicting rules. |
BranchProtectionRuleConflictConnection
The connection type for BranchProtectionRuleConflict.
Felder für BranchProtectionRuleConflictConnection
| Name | BESCHREIBUNG |
|---|---|
A list of edges. | |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
BranchProtectionRuleConflictEdge
An edge in a connection.
Felder für BranchProtectionRuleConflictEdge
| Name | BESCHREIBUNG |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
BranchProtectionRuleConnection
The connection type for BranchProtectionRule.
Felder für BranchProtectionRuleConnection
| Name | BESCHREIBUNG |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
BranchProtectionRuleEdge
An edge in a connection.
Felder für BranchProtectionRuleEdge
| Name | BESCHREIBUNG |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
BypassForcePushAllowance
A user, team, or app who has the ability to bypass a force push requirement on a protected branch.
BypassForcePushAllowance Wird implementiert
Felder für BypassForcePushAllowance
| Name | BESCHREIBUNG |
|---|---|
| The actor that can force push. |
| Identifies the branch protection rule associated with the allowed user, team, or app. |
| The Node ID of the BypassForcePushAllowance object. |
BypassForcePushAllowanceConnection
The connection type for BypassForcePushAllowance.
Felder für BypassForcePushAllowanceConnection
| Name | BESCHREIBUNG |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
BypassForcePushAllowanceEdge
An edge in a connection.
Felder für BypassForcePushAllowanceEdge
| Name | BESCHREIBUNG |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
BypassPullRequestAllowance
A user, team, or app who has the ability to bypass a pull request requirement on a protected branch.
BypassPullRequestAllowance Wird implementiert
Felder für BypassPullRequestAllowance
| Name | BESCHREIBUNG |
|---|---|
| The actor that can bypass. |
| Identifies the branch protection rule associated with the allowed user, team, or app. |
| The Node ID of the BypassPullRequestAllowance object. |
BypassPullRequestAllowanceConnection
The connection type for BypassPullRequestAllowance.
Felder für BypassPullRequestAllowanceConnection
| Name | BESCHREIBUNG |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
BypassPullRequestAllowanceEdge
An edge in a connection.
Felder für BypassPullRequestAllowanceEdge
| Name | BESCHREIBUNG |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
PushAllowance
A team, user, or app who has the ability to push to a protected branch.
PushAllowance Wird implementiert
Felder für PushAllowance
| Name | BESCHREIBUNG |
|---|---|
| The actor that can push. |
| Identifies the branch protection rule associated with the allowed user, team, or app. |
| The Node ID of the PushAllowance object. |
PushAllowanceConnection
The connection type for PushAllowance.
Felder für PushAllowanceConnection
| Name | BESCHREIBUNG |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
PushAllowanceEdge
An edge in a connection.
Felder für PushAllowanceEdge
| Name | BESCHREIBUNG |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
RefNameConditionTarget
Parameters to be used for the ref_name condition.
Felder für RefNameConditionTarget
| Name | BESCHREIBUNG |
|---|---|
| Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. |
| Array of ref names or patterns to include. One of these patterns must match
for the condition to pass. Also accepts |
RequiredStatusCheckDescription
Represents a required status check for a protected branch, but not any specific run of that check.
Felder für RequiredStatusCheckDescription
| Name | BESCHREIBUNG |
|---|---|
| The App that must provide this status in order for it to be accepted. |
| The name of this status. |
RequiredStatusChecksParameters
Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
Felder für RequiredStatusChecksParameters
| Name | BESCHREIBUNG |
|---|---|
| Allow repositories and branches to be created if a check would otherwise prohibit it. |
| Status checks that are required. |
| Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. |
ReviewDismissalAllowance
A user, team, or app who has the ability to dismiss a review on a protected branch.
ReviewDismissalAllowance Wird implementiert
Felder für ReviewDismissalAllowance
| Name | BESCHREIBUNG |
|---|---|
| The actor that can dismiss. |
| Identifies the branch protection rule associated with the allowed user, team, or app. |
| The Node ID of the ReviewDismissalAllowance object. |
ReviewDismissalAllowanceConnection
The connection type for ReviewDismissalAllowance.
Felder für ReviewDismissalAllowanceConnection
| Name | BESCHREIBUNG |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
ReviewDismissalAllowanceEdge
An edge in a connection.
Felder für ReviewDismissalAllowanceEdge
| Name | BESCHREIBUNG |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
Unions
BranchActorAllowanceActor
Types which can be actors for BranchActorAllowance objects.
Mögliche Typen für BranchActorAllowanceActor
PushAllowanceActor
Types that can be an actor.
Mögliche Typen für PushAllowanceActor
ReviewDismissalAllowanceActor
Types that can be an actor.
Mögliche Typen für ReviewDismissalAllowanceActor
Input objects
BranchNamePatternParametersInput
Parameters to be used for the branch_name_pattern rule.
Eingabefelder für BranchNamePatternParametersInput
| Name | BESCHREIBUNG |
|---|---|
| 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. |
CreateBranchProtectionRuleInput
Autogenerated input type of CreateBranchProtectionRule.
Eingabefelder für CreateBranchProtectionRuleInput
| Name | BESCHREIBUNG |
|---|---|
| Can this branch be deleted. |
| Are force pushes allowed on this branch. |
| Is branch creation a protected operation. |
| A list of User, Team, or App IDs allowed to bypass force push targeting matching branches. |
| A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches. |
| A unique identifier for the client performing the mutation. |
| Will new commits pushed to matching branches dismiss pull request review approvals. |
| Can admins override branch protection. |
| Whether users can pull changes from upstream when the branch is locked. Set to
|
| Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. |
| The glob-like pattern used to determine matching branches. |
| A list of User, Team, or App IDs allowed to push to matching branches. |
| The global relay id of the repository in which a new branch protection rule should be created in. |
| Whether the most recent push must be approved by someone other than the person who pushed it. |
| Number of approving reviews required to update matching branches. |
| The list of required deployment environments. |
| List of required status check contexts that must pass for commits to be accepted to matching branches. |
| The list of required status checks. |
| Are approving reviews required to update matching branches. |
| Are reviews from code owners required to update matching branches. |
| Are commits required to be signed. |
| Are conversations required to be resolved before merging. |
| Are successful deployments required before merging. |
| Are merge commits prohibited from being pushed to this branch. |
| Are status checks required to update matching branches. |
| Are branches required to be up to date before merging. |
| Is pushing to matching branches restricted. |
| Is dismissal of pull request reviews restricted. |
| A list of User, Team, or App IDs allowed to dismiss reviews on pull requests targeting matching branches. |
DeleteBranchProtectionRuleInput
Autogenerated input type of DeleteBranchProtectionRule.
Eingabefelder für DeleteBranchProtectionRuleInput
| Name | BESCHREIBUNG |
|---|---|
| The global relay id of the branch protection rule to be deleted. |
| A unique identifier for the client performing the mutation. |
MergeBranchInput
Autogenerated input type of MergeBranch.
Eingabefelder für MergeBranchInput
| Name | BESCHREIBUNG |
|---|---|
| The name of the base branch that the provided head will be merged into. |
| A unique identifier for the client performing the mutation. |
| Message to use for the merge commit. If omitted, a default will be used. |
| The head to merge into the base branch. This can be a branch name or a commit GitObjectID. |
| The Node ID of the Repository containing the base branch that will be modified. |
RefNameConditionTargetInput
Parameters to be used for the ref_name condition.
Eingabefelder für RefNameConditionTargetInput
| Name | BESCHREIBUNG |
|---|---|
| Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. |
| Array of ref names or patterns to include. One of these patterns must match
for the condition to pass. Also accepts |
RequiredStatusCheckInput
Specifies the attributes for a new or updated required status check.
Eingabefelder für RequiredStatusCheckInput
| Name | BESCHREIBUNG |
|---|---|
| The ID of the App that must set the status in order for it to be accepted. Omit this value to use whichever app has recently been setting this status, or use "any" to allow any app to set the status. |
| Status check context that must pass for commits to be accepted to the matching branch. |
RequiredStatusChecksParametersInput
Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
Eingabefelder für RequiredStatusChecksParametersInput
| Name | BESCHREIBUNG |
|---|---|
| Allow repositories and branches to be created if a check would otherwise prohibit it. |
| Status checks that are required. |
| Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. |
UpdateBranchProtectionRuleInput
Autogenerated input type of UpdateBranchProtectionRule.
Eingabefelder für UpdateBranchProtectionRuleInput
| Name | BESCHREIBUNG |
|---|---|
| Can this branch be deleted. |
| Are force pushes allowed on this branch. |
| Is branch creation a protected operation. |
| The global relay id of the branch protection rule to be updated. |
| A list of User, Team, or App IDs allowed to bypass force push targeting matching branches. |
| A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches. |
| A unique identifier for the client performing the mutation. |
| Will new commits pushed to matching branches dismiss pull request review approvals. |
| Can admins override branch protection. |
| Whether users can pull changes from upstream when the branch is locked. Set to
|
| Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. |
| The glob-like pattern used to determine matching branches. |
| A list of User, Team, or App IDs allowed to push to matching branches. |
| Whether the most recent push must be approved by someone other than the person who pushed it. |
| Number of approving reviews required to update matching branches. |
| The list of required deployment environments. |
| List of required status check contexts that must pass for commits to be accepted to matching branches. |
| The list of required status checks. |
| Are approving reviews required to update matching branches. |
| Are reviews from code owners required to update matching branches. |
| Are commits required to be signed. |
| Are conversations required to be resolved before merging. |
| Are successful deployments required before merging. |
| Are merge commits prohibited from being pushed to this branch. |
| Are status checks required to update matching branches. |
| Are branches required to be up to date before merging. |
| Is pushing to matching branches restricted. |
| Is dismissal of pull request reviews restricted. |
| A list of User, Team, or App IDs allowed to dismiss reviews on pull requests targeting matching branches. |