schema_version: 1
comments:
  enabled: true
branch_name_policy:
  patterns:
    - '^feature/[A-Z]+-\d+-.*$'
    - '^bugfix/[A-Z]+-\d+-.*$'
commit_message_policy:
  patterns:
    - '^[A-Z]+-\d+ .+$'
  scope: all_commits
pull_request_title_policy:
  patterns:
    - '^[A-Z]+-\d+: .+$'
pull_request_size_policy:
  max_changed_lines: 1000
  max_changed_files: 25
  max_commits: 10
changelog_policy:
  branches:
    - '^release/.*$'
    - '^hotfix/.*$'
  required_files:
    - CHANGELOG.md
    - docs/releases/*.md
rules:
  - id: require_issue_reference
    configuration:
      patterns:
        - '[A-Z]+-\d+'
  - id: require_pull_request_label
    configuration:
      labels:
        - ready-to-merge
  - id: pull_request_title_pattern
  - id: maximum_pull_request_size
  - id: branch_name_pattern
  - id: commit_message_pattern
  - id: require_changelog
