You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh pr create shows PR author as option for reviewers when logged in with PAT #6436
When creating a PR via gh pr create it seems the CLI allows to select oneself as a reviewer. I am not sure this should be the case, as GitHub generally does not allow this on pull requests. I am logged in with a PAT set in GITHUB_TOKEN env variable.
Steps to reproduce the behavior
Simply create any PR with gh pr create
Edit metadata
Select author of the new PR as reviewer
GitHub will not accept the author as a reviewer
Expected vs actual behavior
The CLI does not suggest the author of the new PR as a reviewer
changed the title [-]`gh pr create` shows PR author as option for reviewers[/-][+]`gh pr create` shows PR author as option for reviewers when logged in with PAT[/+]on Oct 14, 2022
@d3psi Thanks for writing in, I was able to reproduce this bug. We should not be allowing the selection of the current user from the reviewers selection list.
Activity
[-]`gh pr create` shows PR author as option for reviewers[/-][+]`gh pr create` shows PR author as option for reviewers when logged in with PAT[/+]samcoe commentedon Oct 17, 2022
@d3psi Thanks for writing in, I was able to reproduce this bug. We should not be allowing the selection of the current user from the reviewers selection list.