|
33 | 33 | with: |
34 | 34 | fetch-depth: 1 |
35 | 35 |
|
36 | | - - name: Setup Node.js |
37 | | - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 |
38 | | - with: |
39 | | - node-version: "20" |
40 | | - |
41 | | - - name: Install markdownlint-cli |
42 | | - run: npm install -g markdownlint-cli |
43 | | - |
44 | 36 | - name: Review PR with Claude |
45 | 37 | uses: anthropics/claude-code-action@1b8ee3b94104046d71fde52ec3557651ad8c0d71 # v1.0.29 |
46 | 38 | with: |
|
56 | 48 |
|
57 | 49 | ## Instructions |
58 | 50 | 1. Get the PR diff to understand what changed |
59 | | - 2. If any `.md` files were changed, run `markdownlint --config .markdownlint.json <files>` to check for style issues |
| 51 | + 2. If any `.md` files were changed, run `npx markdownlint-cli2 <files>` to check for style issues |
60 | 52 | 3. Review the changes against the criteria below |
61 | 53 | 4. Post a summary comment with your findings |
62 | 54 |
|
|
69 | 61 | - **Hooks** (`hooks/hooks.json`): Validate event types and matcher patterns. |
70 | 62 |
|
71 | 63 | ### Markdown Quality (run markdownlint) |
72 | | - Run `markdownlint --config .markdownlint.json` on changed `.md` files. Key rules enforced: |
| 64 | + Run `npx markdownlint-cli2` on changed `.md` files. Key rules enforced: |
73 | 65 | - ATX-style headers (`#` not underlines) |
74 | 66 | - Dash-style lists (`-` not `*` or `+`) |
75 | 67 | - 2-space indentation for nested lists |
|
90 | 82 | Be constructive and helpful. Focus on significant issues, not nitpicks. |
91 | 83 | If the PR looks good, say so briefly - don't invent problems. |
92 | 84 | claude_args: | |
93 | | - --allowedTools "Bash(gh pr:*),Bash(markdownlint:*),Read,Glob,Grep,mcp__github_inline_comment__create_inline_comment" |
| 85 | + --allowedTools "Bash(gh pr:*),Bash(npx markdownlint-cli2:*),Read,Glob,Grep,mcp__github_inline_comment__create_inline_comment" |
0 commit comments