بنقرة واحدة
approve-pr
Pre-flight checks, approve, squash-merge, and delete branch for a PR.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Pre-flight checks, approve, squash-merge, and delete branch for a PR.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Full PR review workflow — Copilot triage, automated checks, change requests or approval.
Verify that a PR author addressed prior review feedback — parses checklist items from the reviewer's comment and checks each against new commits.
Draft and post a structured PR comment requesting specific changes from the author.
Run all automated PR checks — code conventions, documentation sync, and holistic review.
Fetch and classify Copilot's review suggestions on a PR as incorporate, ignore, or discuss.
Check whether code changes need documentation updates.
| name | approve-pr |
| description | Pre-flight checks, approve, squash-merge, and delete branch for a PR. |
| disable-model-invocation | true |
Approve and merge a pull request after running pre-flight safety checks.
The PR number is: $ARGUMENTS
If no PR number was provided, detect it from the current branch:
gh pr view --json number --jq .number
Run all checks before proceeding:
CI status:
gh pr checks <PR>
If any required checks are failing, report and stop. If checks are pending, report the status and ask whether to wait or proceed.
Merge conflicts:
gh pr view <PR> --json mergeable --jq .mergeable
If CONFLICTING, report and stop — author must resolve conflicts first.
Existing reviews:
gh api repos/bkelly-lab/jkp-data/pulls/<PR>/reviews --jq '.[] | {user: .user.login, state: .state}'
Show existing reviews for awareness.
PR summary:
gh pr view <PR> --json title,author,commits --jq '{title, author: .author.login, commits: (.commits | length)}'
Show the reviewer a pre-merge summary:
## Ready to Merge
PR #<n>: <title>
Author: <author>
Commits: <count> (will be squash-merged into 1)
CI: All checks passing
Conflicts: None
Existing reviews: <list>
Proceed with approve + squash-merge + delete branch?
Wait for explicit confirmation before proceeding. Do not auto-approve or auto-merge.
gh pr review <PR> --approve --body "Looks good — approving and merging."
gh pr merge <PR> --squash --delete-branch
Report the result: merged commit, branch deleted, PR closed. Link to the merged PR.