Skip to content

Fix card display issue when sharing course or activity chapters #33

Fix card display issue when sharing course or activity chapters

Fix card display issue when sharing course or activity chapters #33

Workflow file for this run

name: PR Check
on:
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set node
uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: ni --no-frozen-lockfile
- name: Lint
run: nr lint
# 检查提交信息
- name: Lint commit messages
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
# 检查 PR 中的所有提交信息是否符合规范
# base.sha 是 PR 的起始点
# head.sha 是 PR 的最新提交