summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/git-commit-message-style.yml
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2024-03-12 14:23:07 +0100
committerLinus Färnstrand <linus@mullvad.net>2024-03-14 10:10:19 +0100
commit93b9d8dfd0ed35b673d3d2a785114932c291e893 (patch)
tree01eb1e24e62aef579d447fc4725d4518156b3526 /.github/workflows/git-commit-message-style.yml
parent520840119ea0a2feb6b53fd8dac89a00ebb72c3d (diff)
downloadmullvadvpn-93b9d8dfd0ed35b673d3d2a785114932c291e893.tar.xz
mullvadvpn-93b9d8dfd0ed35b673d3d2a785114932c291e893.zip
Add Github actions CI job for checking commit messages
Diffstat (limited to '.github/workflows/git-commit-message-style.yml')
-rw-r--r--.github/workflows/git-commit-message-style.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/git-commit-message-style.yml b/.github/workflows/git-commit-message-style.yml
new file mode 100644
index 0000000000..ddb55b4160
--- /dev/null
+++ b/.github/workflows/git-commit-message-style.yml
@@ -0,0 +1,18 @@
+---
+name: Git - Check commit message style
+on:
+ push:
+ workflow_dispatch:
+
+jobs:
+ check-commit-message-style:
+ name: Check commit message style
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check against guidlines
+ uses: mristin/opinionated-commit-message@v3.1.0
+ with:
+ # Commit messages are allowed to be subject only, no body
+ allow-one-liners: 'true'
+ # This action defaults to 50 char subjects, but 74 is fine.
+ max-subject-line-length: '74'