Commit 0a634a49 authored by Daniel Michelin's avatar Daniel Michelin Committed by Oliver Smith

CI: check_mr_settings: disallow squashing commits (!464)

parent fb477bab
Pipeline #68199559 failed with stages
in 1 minute and 57 seconds
......@@ -110,6 +110,13 @@ def main():
# Check the merge request
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!")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment