# GitHub REST API repository use_squash_pr_title_as_default deprecated field removed

Status: search-observed
Product: GitHub REST API
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/github-rest-api-repository-use-squash-pr-title-as-default-deprecated-field-removed
Machine JSON: https://gitdocs.org/api/fixes/github-rest-api-repository-use-squash-pr-title-as-default-deprecated-field-removed.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

Several historical response shapes are locally plausible; only the selected current API version determines fields, enums, media types, and status codes.

## Fix

```
Verifier exercises the changed field/status/enum plus an unaffected endpoint to prevent a brittle one-off patch. Exercise strict and permissive parsing plus one downstream behavior tied to the changed field.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- GitHub REST API repository use_squash_pr_title_as_default deprecated field removed
- "use_squash_pr_title_as_default" GitHub
- "squash_merge_commit_title" "use_squash_pr_title_as_default"
- "use_squash_pr_title" GitHub REST API
- docs.github.com REST repos update repository squash_merge_commit_title PR_TITLE
- "squash_merge_commit_title" "docs.github.com"
- https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28
- 'use_squash_pr_title_as_default' in https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28

## Sources

- GitHub REST API 2026-03-10 breaking changes: https://docs.github.com/en/rest/about-the-rest-api/breaking-changes?apiVersion=2026-03-10
- GitHub source file or repository reference: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28
