Skip to content

Commit b5cf5c0

Browse files
authored
Merge pull request #341 from netwrix/dev
doc review diff only 2
2 parents cd8e871 + ffa5343 commit b5cf5c0

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/claude-documentation-fixer.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ jobs:
6767
echo "EOF"
6868
} >> "$GITHUB_OUTPUT"
6969
70+
- name: Install Vale
71+
if: steps.pr-info.outputs.is_fork == 'false'
72+
run: |
73+
VERSION=$(curl -s "https://api.github.com/repos/errata-ai/vale/releases/latest" | jq -r '.tag_name')
74+
curl -sfL "https://github.com/errata-ai/vale/releases/download/${VERSION}/vale_${VERSION#v}_Linux_64-bit.tar.gz" \
75+
| sudo tar -xz -C /usr/local/bin vale
76+
7077
- name: Apply fixes
7178
if: steps.pr-info.outputs.is_fork == 'false'
7279
uses: anthropics/claude-code-action@v1
@@ -76,5 +83,5 @@ jobs:
7683
show_full_output: true
7784
claude_args: |
7885
--model claude-sonnet-4-5-20250929
79-
--allowedTools "Read,Write,Edit,Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh pr comment:*),Bash(git config:*),Bash(git add:*),Bash(git commit:*),Bash(git push:*),Bash(git status:*),Bash(git diff:*)"
86+
--allowedTools "Read,Write,Edit,Bash(vale:*),Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh pr comment:*),Bash(git config:*),Bash(git add:*),Bash(git commit:*),Bash(git push:*),Bash(git status:*),Bash(git diff:*)"
8087
--append-system-prompt "${{ steps.read-prompt.outputs.prompt }}"

.github/workflows/claude-documentation-reviewer.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@ jobs:
126126
"To apply suggested fixes to the updated documentation, individually or in bulk, comment `@claude`"
127127
" on this PR followed by your instructions (`@claude fix all issues`"
128128
" or `@claude fix all linting issues` or `@claude fix only the spelling errors`).\n\n"
129-
"To review and fix other preexisting issues in the updated documentation, comment `@claude` on this PR"
130-
" followed by your instructions (`@claude review preexisting issues`"
131-
" or `@claude fix preexisting issues`).\n\n"
129+
"To review the updated documentation for preexisting issues, comment `@claude` on this PR"
130+
" followed by your instructions (`@claude detect preexisting issues`).\n\n"
132131
"Note: Automated fixes are only available for branches in this repository, not forks."
133132
)
134133

0 commit comments

Comments
 (0)