Skip to content

Commit 3ae2c81

Browse files
committed
modify parse_input()
1 parent ad7c7ea commit 3ae2c81

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ inputs:
2525
github_base_url:
2626
description: "The API base url to be used in requests to GitHub Enterprise"
2727
required: false
28+
default: "https://api.github.com"
2829

2930
outputs:
3031
deleted_branches: # id of output

src/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
def parse_input() -> (list, int, bool, str, str):
77
args: List[str] = sys.argv
88

9-
if len(args) != 5:
9+
if len(args) != 6:
1010
input_string = ' '.join(args)
11-
expected_string = f'{args[0]} ignore_branches last_commit_age_days dry_run_yes_no'
11+
expected_string = f'{args[0]} ignore_branches last_commit_age_days dry_run_yes_no github_token github_repo github_base_url'
1212
raise RuntimeError(f'Incorrect input: {input_string}. Expected: {expected_string}')
1313

1414
branches_raw: str = args[1]

0 commit comments

Comments
 (0)