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
Add --branch argument to print_github_reviews.py (#1755)
This change allows the script to find a pull request based on a specified branch name, in addition to the existing methods of using a pull request number or the current git branch.
The --branch argument is mutually exclusive with --pull_number.
If neither --pull_number nor --branch is provided, the script defaults to finding the latest PR for the current git branch.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
help="Pull request number. If not provided, script attempts to find the latest open PR for the current git branch."
234
234
)
235
+
parser.add_argument(
236
+
"--branch",
237
+
type=str,
238
+
default=None,
239
+
help="Branch name to find the latest open PR for. Mutually exclusive with --pull_number. If neither --pull_number nor --branch is provided, uses the current git branch."
0 commit comments