ci(lint): enforce scope of commit to be filled #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request name linter | |
on: | |
pull_request: | |
types: ['opened', 'edited', 'reopened', 'synchronize'] | |
jobs: | |
lint-pull-request-title: | |
name: Lint pull request title | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- run: yarn global add @commitlint/cli @commitlint/config-conventional | |
name: Install commitlint | |
- run: echo "${{github.event.pull_request.title}}" | commitlint --config commitlint.config.ci.js |