lint: Skip COMMIT_RANGE if no CIRRUS_PR

This commit is contained in:
MarcoFalke
2022-11-28 11:11:01 +01:00
parent fa5752da6a
commit fad1c55301
3 changed files with 9 additions and 5 deletions

View File

@@ -97,6 +97,8 @@ def main():
commit_range = merge_base + "..HEAD"
else:
commit_range = os.getenv("COMMIT_RANGE")
if commit_range == "SKIP_EMPTY_NOT_A_PR":
sys.exit(0)
whitespace_selection = []
tab_selection = []