]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test(conventional): add Conventional Commits PR github action
authorHarald Hoyer <harald@redhat.com>
Mon, 14 Dec 2020 15:18:02 +0000 (16:18 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Wed, 16 Dec 2020 14:10:18 +0000 (15:10 +0100)
To ease the creation of the release notes, enforce some style on the git
commit message titles with `Commisery`.

https://github.com/marketplace/actions/commisery

Using https://github.com/clog-tool/clog-cli later on these commits will
generate a pretty nice base for the release notes.

.github/workflows/pr.yml [new file with mode: 0644]

diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
new file mode 100644 (file)
index 0000000..c6782c5
--- /dev/null
@@ -0,0 +1,19 @@
+name: Commisery
+on:
+  pull_request:
+    types: [edited, opened, synchronize, reopened]
+
+jobs:
+  commit-message:
+    name: Conventional Commit Message Checker (Commisery)
+    runs-on: ubuntu-latest
+    steps:
+    - name: Check-out the repo under $GITHUB_WORKSPACE
+      uses: actions/checkout@v2
+
+    - name: Run Commisery
+      uses: KevinDeJong-TomTom/commisery-action@master
+      with:
+        token: ${{ secrets.GITHUB_TOKEN }}
+        pull_request: ${{ github.event.number }}
+