diff --git a/.github/workflows/claude-documentation-fixer.yml b/.github/workflows/claude-documentation-fixer.yml index 9cec53fe0b..0461cd8103 100644 --- a/.github/workflows/claude-documentation-fixer.yml +++ b/.github/workflows/claude-documentation-fixer.yml @@ -67,6 +67,13 @@ jobs: echo "EOF" } >> "$GITHUB_OUTPUT" + - name: Install Vale + if: steps.pr-info.outputs.is_fork == 'false' + run: | + VERSION=$(curl -s "https://api.github.com/repos/errata-ai/vale/releases/latest" | jq -r '.tag_name') + curl -sfL "https://github.com/errata-ai/vale/releases/download/${VERSION}/vale_${VERSION#v}_Linux_64-bit.tar.gz" \ + | sudo tar -xz -C /usr/local/bin vale + - name: Apply fixes if: steps.pr-info.outputs.is_fork == 'false' uses: anthropics/claude-code-action@v1 @@ -76,5 +83,5 @@ jobs: show_full_output: true claude_args: | --model claude-sonnet-4-5-20250929 - --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:*)" + --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:*)" --append-system-prompt "${{ steps.read-prompt.outputs.prompt }}" diff --git a/.github/workflows/claude-documentation-reviewer.yml b/.github/workflows/claude-documentation-reviewer.yml index a1de3b41a8..bfce1955c6 100644 --- a/.github/workflows/claude-documentation-reviewer.yml +++ b/.github/workflows/claude-documentation-reviewer.yml @@ -126,9 +126,8 @@ jobs: "To apply suggested fixes to the updated documentation, individually or in bulk, comment `@claude`" " on this PR followed by your instructions (`@claude fix all issues`" " or `@claude fix all linting issues` or `@claude fix only the spelling errors`).\n\n" - "To review and fix other preexisting issues in the updated documentation, comment `@claude` on this PR" - " followed by your instructions (`@claude review preexisting issues`" - " or `@claude fix preexisting issues`).\n\n" + "To review the updated documentation for preexisting issues, comment `@claude` on this PR" + " followed by your instructions (`@claude detect preexisting issues`).\n\n" "Note: Automated fixes are only available for branches in this repository, not forks." )