Skip to content

Commit 80c927c

Browse files
Fix: Resolve conflicting --pull_number argument definition
Removes the duplicate argparse definition for `--pull_number`, resolving the `argparse.ArgumentError`. The `--pull_number` argument is now correctly defined once as an optional argument, with the script falling back to auto-detection if it's not provided.
1 parent 252b5fa commit 80c927c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

scripts/gha/get_pr_review_comments_standalone.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,6 @@ def parse_repo_url(url_string):
212212
"Repository can be specified via --url, or --owner AND --repo, or auto-detected from git remote 'origin'.",
213213
formatter_class=argparse.RawTextHelpFormatter
214214
)
215-
parser.add_argument( # This is always required
216-
"--pull_number",
217-
type=int,
218-
required=True,
219-
help="Pull request number."
220-
)
221215
# Arguments for repository specification
222216
parser.add_argument(
223217
"--pull_number",

0 commit comments

Comments
 (0)