mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-30 16:44:50 +03:00
f288e3ee25
Co-authored-by: EYHN <cneyhn@gmail.com> Co-authored-by: LongYinan <lynweklm@gmail.com>
32 lines
743 B
YAML
32 lines
743 B
YAML
name: PR Title Lint
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- synchronize
|
|
branches:
|
|
- canary
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check-pull-request-title:
|
|
name: Check pull request title
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: 'yarn'
|
|
node-version-file: '.nvmrc'
|
|
- name: Install dependencies
|
|
run: yarn workspaces focus @affine/commitlint-config
|
|
- name: Check PR title
|
|
env:
|
|
TITLE: ${{ github.event.pull_request.title }}
|
|
run: echo "$TITLE" | yarn workspace @affine/commitlint-config commitlint -g ./.commitlintrc.json
|