What problem does it solve?
This Skill removes the guesswork and repeated failure modes involved in merging TBM Gitea pull requests, especially when squash merges fail with HTTP 405 due to rebased/delete-repushed branch quirks.
Core Features & Use Cases
- Pre-merge verification gate: Confirms PR state and captures the head SHA before any override or merge attempt.
- LT audit-trail override note ceremony: Posts an override comment before the merge call to satisfy the autonomous-merge contract for hot-file/authorization scenarios.
- Strategy fallback orchestration: Tries squash first, and automatically falls back to merge when squash returns 405, surfacing diagnostics if both fail.
- Hot-file and Codex-FAIL safety checks: Enforces the documented “stop if real Codex findings exist” rule to prevent shipping against evidence.
Use case example: When LT authorizes a hot-file PR merge, run this Skill with the PR number and an override reason so the PR is merged reliably even if squash prechecks reject the branch.
Quick Start
Invoke pr-merge with the target PR number and an override reason that matches the LT authorization, then let it post the audit note and perform squash-then-merge fallback automatically.