2023-04-25 16:22:15 +02:00
|
|
|
name: Commitlint
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
- reopened
|
|
|
|
- edited
|
|
|
|
merge_group:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
types:
|
|
|
|
- checks_requested
|
2023-06-09 17:12:20 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2023-04-25 16:22:15 +02:00
|
|
|
jobs:
|
|
|
|
commit-checks:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install conventional-commit linter
|
|
|
|
run: npm install @commitlint/config-conventional @commitlint/cli
|
|
|
|
|
2023-06-09 17:12:20 +02:00
|
|
|
- name: Run commitlint on PR title
|
2023-04-25 16:22:15 +02:00
|
|
|
run: >-
|
2023-06-09 17:12:20 +02:00
|
|
|
echo '${{ github.event.pull_request.title }}' |
|
|
|
|
npx commitlint --verbose
|
2023-04-25 16:22:15 +02:00
|
|
|
|