query GithubPullRequestMergeOptions($source: GitHubRequestSource!, $owner: String!, $name: String!, $number: Int!) {
githubPullRequestMergeOptions(source: $source, owner: $owner, name: $name, number: $number) {
defaultMethod
defaultMoveTicketToDone
defaultDeleteWorktree
worktreeId
worktreeFolder
canDeleteWorktree
}
}{
"source": "GITHUB_API",
"owner": "string",
"name": "string",
"number": 1
}{
"data": {
"githubPullRequestMergeOptions": {
"defaultMethod": "MERGE",
"defaultMoveTicketToDone": true,
"defaultDeleteWorktree": true,
"worktreeId": "id",
"worktreeFolder": "string",
"canDeleteWorktree": true
}
}
}githubPullRequestMergeOptions
Returns GitHub pull request merge options.
githubPullRequestMergeOptions(worktreeId: ID, source: GitHubRequestSource!, owner: String!, name: String!, number: Int!): GitHubPullRequestMergeOptions!Arguments
Identifier of the linked worktree used to resolve merge defaults and follow-up actions.
The source used to filter or perform the operation.
The owner used to filter or perform the operation.
The name used to filter or perform the operation.
The number used to filter or perform the operation.
Returns
The merge method selected by default. May be null when the repository has no available merge method.
Whether moving the linked Jira ticket to Done is selected by default.
Whether deleting the linked worktree after merge is selected by default.
Identifier of the linked worktree. May be null when no matching worktree is available.
Filesystem path of the linked worktree. May be null when no matching worktree is available.
Whether the linked worktree can be deleted after merge.
Key of the linked Jira ticket. May be null when no ticket can be resolved.
Whether the linked Jira project's Done status is configured.
Available methods associated with this GitHub pull request merge options.
Commit emails associated with this GitHub pull request merge options.
The default commit email associated with this GitHub pull request merge options. May be null when unavailable or not applicable.
The default commit headline associated with this GitHub pull request merge options.
The default commit body associated with this GitHub pull request merge options.
Whether this GitHub pull request merge options can merge.
Whether this GitHub pull request merge options can enable auto merge.
Whether the auto merge enabled condition is true for this GitHub pull request merge options.
Whether the viewer can disable auto merge condition is true for this GitHub pull request merge options.
The merge state status associated with this GitHub pull request merge options.
The head ref oid associated with this GitHub pull request merge options.
The blocked reason associated with this GitHub pull request merge options. May be null when unavailable or not applicable.
query GithubPullRequestMergeOptions($source: GitHubRequestSource!, $owner: String!, $name: String!, $number: Int!) {
githubPullRequestMergeOptions(source: $source, owner: $owner, name: $name, number: $number) {
defaultMethod
defaultMoveTicketToDone
defaultDeleteWorktree
worktreeId
worktreeFolder
canDeleteWorktree
}
}{
"source": "GITHUB_API",
"owner": "string",
"name": "string",
"number": 1
}{
"data": {
"githubPullRequestMergeOptions": {
"defaultMethod": "MERGE",
"defaultMoveTicketToDone": true,
"defaultDeleteWorktree": true,
"worktreeId": "id",
"worktreeFolder": "string",
"canDeleteWorktree": true
}
}
}