-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Feature Request: Add ability to PR re-review requests
Description
It would be useful to have the ability to re-request reviews for a pull request through the CLI, rather than requesting them manually.
We need to manually click the "Re-request review" button in the GitHub UI. There's no CLI way to do this properly.
Use Case
After pushing commits to PRs through the CLI:
-
Option: Remove & Re-add Reviewer (Hack)
gh pr edit 11111 --repo organization/repo --remove-reviewer VedantMadane
gh pr edit 11111 --repo organization/repo --add-reviewer VedantMadane
This doesn't always work. -
Option : Comment Ping (Alternative)
gh pr comment 11111 --repo organization/repo --body "@VedantMadane I've addressed your feedback. Ready for another review when you have time!"
This doesn't technically "re-request" but notifies the reviewer. -
Option: Manual UI Click
Click "Re-request review" button in the PR page
This is the only "official" way. -
Workflow automation: Integrate with CI/CD pipelines that should request re-reviews only after certain conditions are met or commit addresses the raised issue.
Proposed Solution
Add a --re-review flag to gh pr ready:
# Re-review marking PR after ready
gh pr ready <pr-number> --re-review
# Or with review request included
gh pr ready <pr-number> --request-reviewers @user1,@user2 --re-reviewOr add a dedicated re-reviewing command:
gh pr re-review <pr-number> --action ready
gh pr re-review <pr-number> --action request-review --reviewers @user1Alternative Considered
GitHub Actions scheduled workflows could be used, but this requires repository configuration and doesn't work well for cross-repo PR management or one-off scheduling needs.
Additional Context
This feature would complement the existing gh pr ready, gh pr draft, and reviewer management commands, making it easier to manage PR workflows programmatically across different repositories.