File: commit-rules.yml

package info (click to toggle)
gmobile 0.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 632 kB
  • sloc: ansic: 2,079; sh: 36; xml: 31; makefile: 10; javascript: 6
file content (20 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (29)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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: '^[^:]+: [a-z]'
      message: "Commit description in commit message subject should be properly Capitalized. E.g. 'monitor: Avoid crash on unplug'"
      where: subject
    - regex: '^\S*\.(c|h|ui):'
      message: Commit message subject prefix should not include .c, .h etc.
      where: subject
    - regex: '([^.]\.|[:,;])\s*$'
      message: Commit message subject should not end with punctuation
      where: subject
    - regex: '^[A-Z]\S*:'
      message: "Identifier in commit message subject should start lowercase 'monitor: Avoid crash on unplug'"
      where: subject
  require:
    - regex: '^[a-z0-9,\.\+\-/#=_]+:'
      message: "Commit message should start with a lowercase identifier 'monitor: Avoid crash on unplug'"
      where: subject