{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-repo/json-schema/microsoft-azure-repo-git-pull-request-completion-options-schema.json",
  "title": "GitPullRequestCompletionOptions",
  "description": "Options that control how the pull request is completed and merged.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-repo-pull-requests-api-openapi.yml#/components/schemas/GitPullRequestCompletionOptions",
  "type": "object",
  "properties": {
    "mergeCommitMessage": {
      "type": "string",
      "description": "Commit message for the merge commit"
    },
    "mergeStrategy": {
      "type": "string",
      "enum": [
        "noFastForward",
        "squash",
        "rebase",
        "rebaseMerge"
      ],
      "description": "Merge strategy to use. NoFastForward creates a merge commit, squash creates a single commit, rebase replays commits."
    },
    "deleteSourceBranch": {
      "type": "boolean",
      "description": "Delete the source branch after merge"
    },
    "bypassPolicy": {
      "type": "boolean",
      "description": "Bypass branch policies during completion"
    },
    "bypassReason": {
      "type": "string",
      "description": "Reason for bypassing policies"
    },
    "transitionWorkItems": {
      "type": "boolean",
      "description": "Transition linked work items to the next state on completion"
    },
    "squashMerge": {
      "type": "boolean",
      "description": "Deprecated. Use mergeStrategy instead."
    },
    "autoCompleteIgnoreConfigIds": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int32"
      },
      "description": "Policy configuration IDs that auto-complete should not wait for"
    }
  }
}