DBZ-1868 Validate commit messages in PR
This commit is contained in:
parent
449154beaa
commit
e7f374addc
15
.github/workflows/sanity-check.yml
vendored
Normal file
15
.github/workflows/sanity-check.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
name: Sanity Check of PR
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Commit message
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v1
|
||||
- name: Commit messages in format DBZ-xxx
|
||||
env:
|
||||
BASE_REF: ${{ github.base_ref }}
|
||||
run: |
|
||||
! git log --format='format:%s' refs/remotes/origin/master.. | tail -n +2 | grep -Ev '^(DBZ-[[:digit:]]+)|(\[release\])|(\[jenkins-jobs\]) '
|
Loading…
Reference in New Issue
Block a user