> ## 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.

# gitlabMergeOperation

> Persisted merge and follow-up status without a provider request.



**query** `gitlabMergeOperation(projectId: ID!, iid: Int!): GitLabMergeOperation`

## Arguments

**`projectId`**: `ID!` (required)

Target project identifier.

---

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

Project-scoped merge-request number.

## Returns

`GitLabMergeOperation`

**`projectId`**: `ID!`

Target project identifier for the saved merge request.

---

**`iid`**: `Int!`

Project-scoped merge-request number.

---

**`postMergeSwitch`**: `PostMergeSwitchStatus`

Progress of returning the primary checkout to the default branch.

---

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

Whether AIDE syncs the linked branch before merging.

---

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

Recorded outcomes for selected targeting worktrees.

---

**`id`**: `ID!`

Stable identifier of the saved merge operation.

---

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

Current merge-request state or durable merge-operation lifecycle state.

---

**`autoMerge`**: `Boolean!`

Whether native GitLab auto-merge was requested.

---

**`worktreeId`**: `ID`

Linked source checkout, when one exists.

---

**`ticketKey`**: `String`

Linked Jira issue key.

---

**`lastError`**: `String`

Actionable error from reconciliation or an unfinished follow-up.

---

**`mergeConfirmedAt`**: `String`

Time GitLab was confirmed to have merged the request.

---

**`ticketMovedAt`**: `String`

Time the Jira follow-up completed.

---

**`worktreeDeletedAt`**: `String`

Time the worktree cleanup completed.

---

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

Time this operation last changed.



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