mit einem Klick
pr-harden
// Take a pull request labeled needs_work, address blocking review findings, strengthen test coverage, rerun validation, and flip it to ready_to_merge when it is clean.
// Take a pull request labeled needs_work, address blocking review findings, strengthen test coverage, rerun validation, and flip it to ready_to_merge when it is clean.
| name | pr-harden |
| description | Take a pull request labeled needs_work, address blocking review findings, strengthen test coverage, rerun validation, and flip it to ready_to_merge when it is clean. |
Use this skill when a PR is labeled needs_work and the goal is to make the PR merge-ready.
Review target:
Turn a needs_work PR into a ready_to_merge PR by fixing the blocking issues directly on the PR branch.
Start from a clean, current main
git status --short --branchgit fetch --prune origingit checkout maingit pull --ff-only origin mainInspect the PR before changing code
needs_workCheck out the PR branch for editing
gh pr checkout <number> because this skill needs to commit back to the PR branchFix the PR, not main
Validate aggressively
mix quality unless the PR is strictly docs-onlyPush the updated PR branch
mainUpdate the review-state label
needs_work and remove ready_to_mergeready_to_merge and remove needs_workUse:
gh pr edit <number> --add-label needs_work --remove-label ready_to_merge
gh pr edit <number> --add-label ready_to_merge --remove-label needs_work
A PR is only ready_to_merge when all of these are true:
mainReport:
ready_to_merge or remains needs_workDo not merge the PR as part of this skill.