summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-09-07 22:36:17 +0300
committerLinus Groh <mail@linusgroh.de>2021-09-07 20:46:34 +0100
commit24ed8511dd87bc53d65a7e5a569356336821af08 (patch)
tree50c0c683a771fbb7f7b47677fcd7a425ebbb5839 /.github/workflows
parent17ab44e7d718f9f12b91c35bc37ab7eec5521078 (diff)
downloadserenity-24ed8511dd87bc53d65a7e5a569356336821af08.zip
CI+Meta: Add Signed-off-by tag filter to the commit message linter
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/lintcommits.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/lintcommits.yml b/.github/workflows/lintcommits.yml
index 116726344c..7e33d816ed 100644
--- a/.github/workflows/lintcommits.yml
+++ b/.github/workflows/lintcommits.yml
@@ -55,6 +55,14 @@ jobs:
pattern: '^.+[^.\n](\n.*)*$'
error: 'Commit title ends in a period'
+ - name: Check body for sign off
+ if: ${{ success() || failure() }}
+ uses: tim-actions/commit-message-checker-with-regex@v0.3.1
+ with:
+ commits: ${{ steps.get-pr-commits.outputs.commits }}
+ pattern: '^((?!Signed-off-by: )[\s\S])*$'
+ error: 'Commit body contains a Signed-off-by tag'
+
- name: Comment on PR
if: ${{ failure() && !github.event.pull_request.draft }}
uses: IdanHo/comment-on-pr@5f51df338210754f519f721f8320d8f72525a4d0