1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:37:34 +00:00

CI+Meta: Add Signed-off-by tag filter to the commit message linter

This commit is contained in:
Idan Horowitz 2021-09-07 22:36:17 +03:00 committed by Linus Groh
parent 17ab44e7d7
commit 24ed8511dd
2 changed files with 13 additions and 0 deletions

View file

@ -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