بنقرة واحدة
gh-pr-close
Close a GitHub pull request using gh CLI, optionally with a comment and branch deletion.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Close a GitHub pull request using gh CLI, optionally with a comment and branch deletion.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Close GitHub issues with gh CLI, choosing completed vs not planned and optionally adding a closing comment.
Add, edit, or delete GitHub issue comments using gh CLI.
Create GitHub issues with gh CLI, including labels, assignees, milestones, and projects.
Manage linked branches for GitHub issues using gh issue develop.
Edit GitHub issues (title, body, labels, assignees, milestones, projects) using gh CLI.
List and filter GitHub issues using gh CLI with various filters like state, author, labels, milestone, and search queries.
| name | gh-pr-close |
| description | Close a GitHub pull request using gh CLI, optionally with a comment and branch deletion. |
| allowed-tools | Bash, Read, Grep |
--repo OWNER/REPO).gh --version
gh auth status
gh pr view 123 --json number,title,state,headRefName
gh pr close 123
gh pr close 123 --comment "Closing: superseded by #456"
gh pr close 123 --delete-branch
gh pr view 123 --json state,closedAt
# Close PR without comment
gh pr close 123
# Close with explanation
gh pr close 123 --comment "No longer needed after refactoring."
# Close and delete branch
gh pr close 123 --delete-branch --comment "Superseded by #200"
| Flag | Description |
|---|---|
-c, --comment | Leave a closing comment |
-d, --delete-branch | Delete local and remote branch after close |
gh pr reopen.--delete-branch to clean up feature branches.gh pr close --help