0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.github/workflows/commitlint.yml

23 lines
547 B
YAML
Raw Normal View History

2021-08-02 11:18:22 -05:00
name: Commitlint
2021-08-25 10:36:11 -05:00
on:
pull_request:
types: [opened, edited, synchronize, reopened]
2021-08-02 11:18:22 -05:00
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2021-08-02 11:18:22 -05:00
with:
fetch-depth: 0
- name: Setup Node and pnpm
uses: logto-io/actions-node-pnpm-run-steps@v1.2.2
2021-08-02 11:18:22 -05:00
- name: Commitlint
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
2021-08-25 10:36:11 -05:00
- name: Commitlint on PR title
run: echo '${{ github.event.pull_request.title }}' | npx commitlint