{
  "slug": "gh-repo-edit-configures-the-squash-merge-commit-message-59105f98aacc",
  "title": "gh repo edit configures the squash-merge commit message",
  "tools": [
    "gh"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-10T19:40:45.000Z",
  "announced_at": "2026-03-10T19:40:45.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When configuring a repository’s squash-merge behavior, run `gh repo edit` with `--squash-merge-commit-message` and one documented value. The flag is documented for use with `--enable-squash-merge`.",
    "examples": [
      "gh repo edit <owner>/<repo> --enable-squash-merge --squash-merge-commit-message <default|pr-title|pr-title-commits|pr-title-description>"
    ],
    "gotchas": [
      "Version: v2.88.0",
      "<repository>: Repository in `OWNER/REPO` format; omit to use the current repository.",
      "--enable-squash-merge: Enables merging pull requests via squashed commit; the docs describe the message setting in this context.",
      "--squash-merge-commit-message <string>: Sets the default squash-merge commit message behavior. Allowed values: `default`, `pr-title`, `pr-title-commits`, `pr-title-description`.",
      "default: Uses commit title and message for one commit, or pull request title and commit list for two or more.",
      "pr-title: Uses the pull request title.",
      "pr-title-commits: Uses the pull request title and commit list.",
      "pr-title-description: Uses the pull request title and description."
    ]
  },
  "why_it_matters": "Edit repository settings to configure the squash-merge commit message.",
  "sources": [
    "https://github.com/cli/cli/releases/tag/v2.88.0",
    "https://cli.github.com/manual/gh_repo_edit",
    "https://github.com/cli/cli/blob/v2.88.0/pkg/cmd/repo/edit/edit.go"
  ],
  "rank": 0.96021,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-5cebced2cbd56609-7:gate",
    "evidence_hash": "588ebed23042735e024c4fc5688de7c649d9ef35fbf44996438937d6c7da4751"
  },
  "review": {
    "draft_hash": "f430d00c2e85bbfa53316ce38c318a54b19a389a7da3976b57a62fbc4be7cc1a",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.68 (>= 0.6 needed)."
  }
}
