Skip to content

Push rules

Info

This section requires GitLab Premium (paid). (This is a GitLab's limitation, not GitLabForm's.)

Project Push rules

This section purpose is to manage the project push rules.

The settings should be as documented at GitLab's Push rules section of the Projects API docs, except the id.

Example:

projects_and_groups:
  group_1/project_1:
    project_push_rules:
      commit_message_regex: 'Fixes \d +'
      branch_name_regex: ""
      deny_delete_tag: false
      member_check: false
      prevent_secrets: false
      author_email_regex: ""
      file_name_regex: ""
      max_file_size: 0 # in MB, 0 means unlimited