> ## Documentation Index
> Fetch the complete documentation index at: https://ai-development-environment.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# githubPullRequestMergeOperation

> Persisted merge follow-up progress, including after the primary checkout switches branches.



**query** `githubPullRequestMergeOperation(owner: String!, name: String!, number: Int!): WorktreeAutoMerge`

## Arguments

**`owner`**: `String!` (required)

Owner of the GitHub target repository.

---

**`name`**: `String!` (required)

Name of the GitHub target repository.

---

**`number`**: `Int!` (required)

Pull request number within the target repository.

## Returns

`WorktreeAutoMerge`

**`postMergeSwitch`**: `PostMergeSwitchStatus`

Progress of returning the primary checkout to the updated default branch.

---

**`ticketTransitionError`**: `String`

Jira transition warning returned after activation; auto merge remains enabled.

---

**`autoSync`**: `Boolean!`

Whether AIDE syncs the linked branch and waits for passing CI before merging.

---

**`baseBranchUpdateResults`**: `[MergeBaseBranchUpdateResult!]!`

Recorded outcomes for selected targeting worktrees.

---

**`worktreeId`**: `ID!`

Identifier of the related worktree.

---

**`state`**: `String!`

Current state of this worktree auto merge.

---

**`repositoryNameWithOwner`**: `String!`

The repository name with owner associated with this worktree auto merge.

---

**`pullRequestNumber`**: `Int!`

The pull request number associated with this worktree auto merge.

---

**`branch`**: `String!`

The worktree branch associated with this worktree auto merge.

---

**`mergeMethod`**: `GitHubMergeMethod!`

The merge method associated with this worktree auto merge.

---

**`commitHeadline`**: `String!`

The commit headline associated with this worktree auto merge.

---

**`commitBody`**: `String!`

The commit body associated with this worktree auto merge.

---

**`authorEmail`**: `String`

The author email associated with this worktree auto merge. May be null when unavailable or not applicable.

---

**`deleteWorktree`**: `Boolean!`

Whether the delete worktree condition is true for this worktree auto merge.

---

**`moveTicketToDone`**: `Boolean!`

Whether the move ticket to done condition is true for this worktree auto merge.

---

**`ticketKey`**: `ID`

The ticket key associated with this worktree auto merge. May be null when unavailable or not applicable.

---

**`lastError`**: `String`

The last error associated with this worktree auto merge. May be null when unavailable or not applicable.

---

**`updatedAt`**: `String!`

ISO 8601 timestamp when this worktree auto merge was last updated.



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.