| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
name: Commit Message Check |
| 5 |
|
| 6 |
on: |
| 7 |
pull_request: |
| 8 |
types: [opened, edited, reopened, synchronize] |
| 9 |
|
| 10 |
permissions: read-all |
| 11 |
|
| 12 |
jobs: |
| 13 |
check-commit-message: |
| 14 |
name: Check Commit Message |
| 15 |
runs-on: ubuntu-latest |
| 16 |
if: github.event.pull_request.user.login != 'dependabot[bot]' |
| 17 |
|
| 18 |
steps: |
| 19 |
- name: Checkout code |
| 20 |
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 |
| 21 |
with: |
| 22 |
fetch-depth: 0 |
| 23 |
persist-credentials: false |
| 24 |
|
| 25 |
- name: Check PR Commits |
| 26 |
run: |
| 27 |
util/check-commit-messages |
| 28 |
${{ github.event.pull_request.base.sha }}..${{ |
| 29 |
github.event.pull_request.head.sha }} |