0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/.github/workflows/commitlint.yml
renovate[bot] e86ce3ce7f
chore(deps): update logto-io/actions-node-pnpm-run-steps action to v1.2.2 (#908)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-20 02:49:53 +00:00

22 lines
547 B
YAML

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