CI: fix package count check + ci:skip-build (!404)
Do not require ci:ignore-count, when using ci:skip-build in a MR that has change a lot of packages. If the user already supplies ci:skip-build then we can safely assume that we don't to check the package count. Fixes #267
This commit is contained in:
parent
e504c8d1b9
commit
75c8eaeaf7
@ -76,9 +76,10 @@ def get_changed_files():
|
||||
|
||||
|
||||
def get_changed_packages_sanity_check(count):
|
||||
if commit_message_has_string("[ci:ignore-count]"):
|
||||
print("NOTE: package count sanity check skipped ([ci:ignore-count]).")
|
||||
return
|
||||
for mark in ["[ci:ignore-count]", "[ci:skip-build]"]:
|
||||
if commit_message_has_string(mark):
|
||||
print("NOTE: package count sanity check skipped (" + mark + ").")
|
||||
return
|
||||
if count <= 10:
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user