Mutations
createBranchProtectionRule
Create a new branch protection rule.
Поля ввода для createBranchProtectionRule
input(CreateBranchProtectionRuleInput!)
Возвращаемые поля для createBranchProtectionRule
| Имя. | Description |
|---|---|
| The newly created BranchProtectionRule. |
| A unique identifier for the client performing the mutation. |
deleteBranchProtectionRule
Delete a branch protection rule.
Поля ввода для deleteBranchProtectionRule
input(DeleteBranchProtectionRuleInput!)
Возвращаемые поля для deleteBranchProtectionRule
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
mergeBranch
Merge a head into a branch.
Поля ввода для mergeBranch
input(MergeBranchInput!)
Возвращаемые поля для mergeBranch
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The resulting merge Commit. |
updateBranchProtectionRule
Update a branch protection rule.
Поля ввода для updateBranchProtectionRule
input(UpdateBranchProtectionRuleInput!)
Возвращаемые поля для updateBranchProtectionRule
| Имя. | 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.
Поля для BranchNamePatternParameters
| Имя. | 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 Реализует
Поля для BranchProtectionRule
| Имя. | 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. Аргументы для
|
| A list of actors able to force push for this branch protection rule. Аргументы для
|
| A list of actors able to bypass PRs for this branch protection rule. Аргументы для
|
| 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. Аргументы для
|
| Identifies the protection rule pattern. |
| A list push allowances for this branch protection rule. Аргументы для
|
| 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. Аргументы для
|
BranchProtectionRuleConflict
A conflict between two branch protection rules.
Поля для BranchProtectionRuleConflict
| Имя. | Description |
|---|---|
| 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.
Поля для BranchProtectionRuleConflictConnection
| Имя. | Description |
|---|---|
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.
Поля для BranchProtectionRuleConflictEdge
| Имя. | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
BranchProtectionRuleConnection
The connection type for BranchProtectionRule.
Поля для BranchProtectionRuleConnection
| Имя. | Description |
|---|---|
| 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.
Поля для BranchProtectionRuleEdge
| Имя. | Description |
|---|---|
| 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 Реализует
Поля для BypassForcePushAllowance
| Имя. | Description |
|---|---|
| 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.
Поля для BypassForcePushAllowanceConnection
| Имя. | Description |
|---|---|
| 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.
Поля для BypassForcePushAllowanceEdge
| Имя. | Description |
|---|---|
| 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 Реализует
Поля для BypassPullRequestAllowance
| Имя. | Description |
|---|---|
| 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.
Поля для BypassPullRequestAllowanceConnection
| Имя. | Description |
|---|---|
| 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.
Поля для BypassPullRequestAllowanceEdge
| Имя. | Description |
|---|---|
| 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 Реализует
Поля для PushAllowance
| Имя. | Description |
|---|---|
| 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.
Поля для PushAllowanceConnection
| Имя. | Description |
|---|---|
| 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.
Поля для PushAllowanceEdge
| Имя. | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
RefNameConditionTarget
Parameters to be used for the ref_name condition.
Поля для RefNameConditionTarget
| Имя. | Description |
|---|---|
| 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.
Поля для RequiredStatusCheckDescription
| Имя. | Description |
|---|---|
| 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.
Поля для RequiredStatusChecksParameters
| Имя. | Description |
|---|---|
| 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 Реализует
Поля для ReviewDismissalAllowance
| Имя. | Description |
|---|---|
| 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.
Поля для ReviewDismissalAllowanceConnection
| Имя. | Description |
|---|---|
| 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.
Поля для ReviewDismissalAllowanceEdge
| Имя. | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
Unions
BranchActorAllowanceActor
Types which can be actors for BranchActorAllowance objects.
Возможные типы для BranchActorAllowanceActor
PushAllowanceActor
Types that can be an actor.
Возможные типы для PushAllowanceActor
ReviewDismissalAllowanceActor
Types that can be an actor.
Возможные типы для ReviewDismissalAllowanceActor
Input objects
BranchNamePatternParametersInput
Parameters to be used for the branch_name_pattern rule.
Поля ввода для BranchNamePatternParametersInput
| Имя. | 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. |
CreateBranchProtectionRuleInput
Autogenerated input type of CreateBranchProtectionRule.
Поля ввода для CreateBranchProtectionRuleInput
| Имя. | Description |
|---|---|
| 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.
Поля ввода для DeleteBranchProtectionRuleInput
| Имя. | Description |
|---|---|
| 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.
Поля ввода для MergeBranchInput
| Имя. | Description |
|---|---|
| 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.
Поля ввода для RefNameConditionTargetInput
| Имя. | Description |
|---|---|
| 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.
Поля ввода для RequiredStatusCheckInput
| Имя. | Description |
|---|---|
| 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.
Поля ввода для RequiredStatusChecksParametersInput
| Имя. | Description |
|---|---|
| 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.
Поля ввода для UpdateBranchProtectionRuleInput
| Имя. | Description |
|---|---|
| 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. |