This is a one-liner command to list and add a user as a reviewer to all pull requests in a github repo.
for pr in $(gh pr list --json number -q '.[].number'); do gh pr edit $pr --add-reviewer <user_id>; done
Note: The above works only in bash
This is a one-liner command to list and add a user as a reviewer to all pull requests in a github repo.
for pr in $(gh pr list --json number -q '.[].number'); do gh pr edit $pr --add-reviewer <user_id>; done
Note: The above works only in bash