2022-11-08 15:38:30 +00:00
|
|
|
---
|
|
|
|
name: Verify PR title
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2022-11-11 12:45:38 +00:00
|
|
|
types: [opened, ready_for_review, reopened, edited, synchronize]
|
2022-11-08 15:38:30 +00:00
|
|
|
jobs:
|
|
|
|
lint_pr:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-30 21:06:18 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2022-11-08 15:38:30 +00:00
|
|
|
- name: Use Node.js 16
|
|
|
|
id: Node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2023-02-22 12:11:35 +00:00
|
|
|
node-version: 16.15.1
|
2023-01-30 21:06:18 +00:00
|
|
|
- name: Install root dependencies
|
|
|
|
run: yarn install
|
2022-11-08 15:38:30 +00:00
|
|
|
- name: Check PR title
|
2023-01-30 21:06:18 +00:00
|
|
|
run: echo "${{ github.event.pull_request.title }}" | npx commitlint --config ./commitlint.config-ci.js
|