2020-12-27 17:40:00 +01:00
|
|
|
# For more information see: https://github.com/marketplace/actions/commit-linter
|
|
|
|
|
|
|
|
name: 'Lint Commit Messages'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master, develop]
|
|
|
|
pull_request_review:
|
|
|
|
branches: [master, develop]
|
|
|
|
types: [submitted]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
commitlint:
|
|
|
|
if: ${{ (github.event_name == 'push') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved' && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER' || github.event.review.author_association == 'OWNER') && !github.event.pull_request.draft && github.event.pull_request.state == 'open') }}
|
2021-02-14 19:28:15 +01:00
|
|
|
runs-on: 'ubuntu-latest'
|
2020-12-27 17:40:00 +01:00
|
|
|
steps:
|
|
|
|
- uses: 'actions/checkout@v2'
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-03-03 13:21:11 +01:00
|
|
|
- uses: 'wagoid/commitlint-github-action@v3.0.6'
|
2021-02-26 11:02:14 +01:00
|
|
|
with:
|
|
|
|
configFile: '.commitlintrc.json'
|