From fad1c55301b9f2d091d3b0d8a75ff522ce8dae5a Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 28 Nov 2022 11:11:01 +0100 Subject: lint: Skip COMMIT_RANGE if no CIRRUS_PR --- test/lint/lint-git-commit-check.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/lint/lint-git-commit-check.py') diff --git a/test/lint/lint-git-commit-check.py b/test/lint/lint-git-commit-check.py index a1d03370e8..049104398a 100755 --- a/test/lint/lint-git-commit-check.py +++ b/test/lint/lint-git-commit-check.py @@ -46,6 +46,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) commit_hashes = check_output(["git", "log", commit_range, "--format=%H"], universal_newlines=True, encoding="utf8").splitlines() -- cgit v1.2.3