AFFiNE/.github/workflows/pr-title-lint.yml
2023-04-20 11:32:44 -05:00

24 lines
475 B
YAML

name: PR Title Lint
on:
pull_request:
types:
- opened
- edited
- synchronize
branches:
- master
permissions:
contents: read
jobs:
check-pull-request-title:
name: Check pull request title
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- run: echo "${{ github.event.pull_request.title }}" | npx commitlint -g ./.commitlintrc.json