File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ jobs:
25
25
action_container \
26
26
--github-token="${{ github.token }}"
27
27
28
- - name : " Test: ignore branch 'test_prefix/two' and don't fail on quoted --last-commit-age-days "
28
+ - name : " Test: ignore branch 'test_prefix/two'"
29
29
run : |
30
30
docker run --rm -t \
31
31
-e GITHUB_REPOSITORY \
32
32
-e GITHUB_OUTPUT \
33
33
-v "${GITHUB_OUTPUT}:${GITHUB_OUTPUT}" \
34
34
action_container \
35
35
--ignore-branches="test_prefix/two" \
36
- --last-commit-age-days="9" \
36
+ --last-commit-age-days=9 \
37
37
--dry-run=yes \
38
38
--github-token="${{ github.token }}"
39
39
Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ def get_args() -> argparse.Namespace:
44
44
help = "The API base url to be used in requests to GitHub Enterprise"
45
45
)
46
46
47
- # Not setting `type=int` to avoid issues when it's passed as a quoted string
48
47
parser .add_argument (
49
48
"--last-commit-age-days" ,
50
49
help = "How old in days must be the last commit into the branch for the branch to be deleted" ,
51
50
default = 60 ,
51
+ type = int ,
52
52
)
53
53
54
54
parser .add_argument (
@@ -78,7 +78,7 @@ def parse_input(self) -> Options:
78
78
79
79
return Options (
80
80
ignore_branches = ignore_branches ,
81
- last_commit_age_days = int ( args .last_commit_age_days ) ,
81
+ last_commit_age_days = args .last_commit_age_days ,
82
82
allowed_prefixes = allowed_prefixes ,
83
83
dry_run = dry_run ,
84
84
github_token = args .github_token ,
You can’t perform that action at this time.
0 commit comments