Close a pull request and optionally leave a comment.
Section: Pull Requests Core
Close a PR
bash
bash
gh pr close 123 --comment "Superseded by #456"Explanation
Close a pull request and optionally leave a comment.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Pull Requests Core