CI: check_mr_settings: disallow squashing commits (!464)

This commit is contained in:
Daniel Michelin 2019-06-24 18:10:55 -04:00 committed by Oliver Smith
parent fb477bab21
commit 0a634a4932
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -110,6 +110,13 @@ def main():
# Check the merge request
check_environment_variables()
settings = get_mr_settings(args.path)
# Make sure that squashing is disabled
if settings_read(settings, "squash"):
print("*** MR settings check failed!")
print('ERROR: Please turn off the "Squash commits when merge request'
' is accepted." option in the merge request settings.')
return 1
if check_allow_push(settings):
print("*** MR settings check successful!")
else: