summaryrefslogtreecommitdiff
path: root/.gitlab-ci/commit-rules.yml
blob: 1ae43374c186b7b5c1c58b39e7202333ba9637f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
patterns:
  deny:
    - regex: '^$CI_MERGE_REQUEST_PROJECT_URL/(-/)?merge_requests/$CI_MERGE_REQUEST_IID$'
      message: Commit message must not contain a link to its own merge request
    - regex: '^(meta-|Meta)'
      message: Commit message subject should not be prefixed with 'meta-' or 'Meta'
      where: subject
    - regex: '^(clutter-|Clutter)'
      message: Commit message subject should not be prefixed with 'clutter-' or 'Clutter', use 'clutter/' instead
      where: subject
    - regex: '^(cogl-|Cogl)'
      message: Commit message subject should not be prefixed with 'cogl-' or 'Cogl', use 'cogl/' instead
      where: subject
    - regex: '^[^:]+: [a-z]'
      message: "Commit message subject should be properly Capitalized. E.g.  'window: Marginalize extradicity'"
      where: subject
    - regex: '^\S*\.[ch]:'
      message: Commit message subject prefix should not include .c, .h, etc.
      where: subject