GitHub Action: Check commit subject is compliant with HAProxy guidelines
This action checks that the commit subject is compliant with the patch classifying rules of HAProxy contribution guidelines. Also it does minimal check for a meaningful message in the commit subject: no less than 20 characters and at least 3 words.
Examples
Good
BUG/MEDIUM: fix set-var parsing bug in config-parser
MINOR: Add path-rewrite annotation
BUILD/MINOR: Add path-rewrite annotation
Bad
bug: fix set-var parsing bug in config-parser
BUG/MEDIUM: fix set-var
BUG/MODERATE: fix set-var parsing bug in config-parser
None.
Usage
steps:
- name: Check out code
uses: actions/checkout@v1
- name: check-commit
uses: docker://haproxytech/check-commit:TAG