Fix card display issue when sharing course or activity chapters #33
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: 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 的最新提交 |