Skip to content

Commit 4fbdee4

Browse files
committed
Rename some vars in the io lib to make it clearer what they are
1 parent 99b5950 commit 4fbdee4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/io.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ def parse_input() -> (list, int):
1212
raise RuntimeError(f'Incorrect input: {input_string}. Expected: {expected_string}')
1313

1414
branches_raw: str = args[1]
15-
branches_parsed = branches_raw.split(',')
16-
if branches_parsed == ['']:
17-
branches_parsed = []
15+
ignore_branches = branches_raw.split(',')
16+
if ignore_branches == ['']:
17+
ignore_branches = []
1818

19-
branch_last_commit = int(args[2])
19+
last_commit_age_days = int(args[2])
2020

2121
# Dry run can only be either `true` or `false`, as strings due to github actions input limitations
22-
is_dry_run = False if args[3] == 'no' else True
22+
dry_run = False if args[3] == 'no' else True
2323

2424
github_token = args[4]
2525

2626
github_repo = getenv('GITHUB_REPOSITORY')
2727

28-
return branches_parsed, branch_last_commit, is_dry_run, github_token, github_repo
28+
return ignore_branches, last_commit_age_days, dry_run, github_token, github_repo
2929

3030

3131
def format_output(output_strings: dict) -> None:

0 commit comments

Comments
 (0)