We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a8729 commit 99bcd12Copy full SHA for 99bcd12
commit_check/main.py
@@ -99,6 +99,10 @@ def main() -> int:
99
"""The main entrypoint of commit-check program."""
100
parser = get_parser()
101
args = parser.parse_args()
102
+
103
+ if args.dry_run:
104
+ return PASS
105
106
check_results: list[int] = []
107
108
with error_handler():
@@ -119,9 +123,6 @@ def main() -> int:
119
123
if args.merge_base:
120
124
check_results.append(branch.check_merge_base(checks))
121
125
122
- if args.dry_run:
- return PASS
-
126
return PASS if all(val == PASS for val in check_results) else FAIL
127
128
0 commit comments