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:
Oliver Smith 2019-05-31 00:33:03 +02:00
parent e504c8d1b9
commit 75c8eaeaf7
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB

View File

@ -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