Elizabeth Mitchell b0eea7f59d chore: add commitlint config for scopes
PiperOrigin-RevId: 591061701
2023-12-14 15:02:12 -08:00

20 lines
425 B
YAML

name: commitlint
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm install -g @commitlint/cli @commitlint/config-conventional
- run: 'echo "${PR_TITLE}" | commitlint'
env:
PR_TITLE: ${{ github.event.pull_request.title }}