mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-03 10:02:40 +02:00
lint: Skip COMMIT_RANGE if no CIRRUS_PR
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user