2020-06-26 16:14:35 +02:00
name : Commit message format check
2021-08-25 09:22:31 +02:00
on :
2021-09-15 16:00:04 +02:00
# ATTENTION: See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
# re security implications of using this trigger; in particular, no code from PR branches must
# be executed in any flows triggered by it
2021-09-09 13:10:50 +02:00
pull_request_target :
branches : [ master ]
2020-03-12 12:44:10 +01:00
jobs :
build :
name : Commit message
runs-on : ubuntu-latest
steps :
- name : Commit messages in format DBZ-xxx
env :
BASE_REF : ${{ github.base_ref }}
run : |
2021-09-15 14:36:12 +02:00
! git log --format='format:%s' refs/remotes/origin/$BASE_REF.. | tail -n +2 | grep -Ev '^(DBZ-[[:digit:]]+)|(\[release\])|(\[jenkins-jobs\])|(\[docs\]) '
2021-09-09 13:10:50 +02:00
- name : Create Comment
if : ${{ failure() }}
uses : peter-evans/create-or-update-comment@v1
with :
issue-number : ${{ github.event.pull_request.number }}
body : |
Hi @${{ github.event.pull_request.user.login }}, thanks for your contribution. Please prefix the commit message(s) with the [DBZ-xxx JIRA issue key](https://github.com/debezium/debezium/blob/master/CONTRIBUTE.md#making-changes).