What problem does it solve?
TiDB pull requests are parsed by bots that gate merges on specific template sections, hidden HTML comments, and checklist states. Accidentally renaming headings, deleting comments, or using wrong title scopes breaks automation and leaves labels like do-not-merge/needs-tests-checked stuck on the PR.
Core Features & Use Cases
- Template-Safe PR Creation: Starts new PRs from .github/pull_request_template.md using gh pr create -T, with titles in the form pkg: what is changed using module scopes like planner or executor.
- Guarded PR Body Edits: Updates only mutable sections such as Issue Number, Problem Summary, test checkboxes, and the release-note block while preserving hidden HTML comments verbatim.
- Bot Label Verification: Re-reads the PR after edits to confirm labels like do-not-merge/needs-linked-issue and do-not-merge/needs-tests-checked changed as expected.
- Use Case: When linking a new issue to an existing TiDB PR, create the issue first, then patch only the Issue Number line and verify the needs-linked-issue label is removed.
Quick Start
Update my TiDB pull request body to link issue #12345 and check the unit test checkbox without breaking the PR template structure.