[Doc] add new codesnap logo for intelliJ idea #63
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: Lint Commit Messages | |
on: | |
push: | |
branches: | |
- '**' # 匹配所有分支 | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'LICENSE' | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' # 你可以指定你需要的 Node.js 版本 | |
- name: Install commitlint and config | |
run: | | |
npm install @commitlint/cli commitlint-config-wizardoc | |
- name: Lint Commit Messages | |
run: | | |
npx commitlint --from=HEAD~1 --to=HEAD --config commitlint.config.js |