Skip to content

Commit 99f204b

Browse files
authored
Merge pull request #472 from netwrix/dev
simplify doc-pr followup to avoid turn exhaustion
2 parents 63f6e77 + 6e28ca3 commit 99f204b

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/claude-doc-pr.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,24 @@ jobs:
259259
if: steps.pr-info.outputs.is_fork == 'false' && steps.pr-info.outputs.targets_dev == 'true'
260260
uses: anthropics/claude-code-action@v1
261261
env:
262+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
262263
COMMENT_BODY: ${{ github.event.comment.body }}
263264
with:
264265
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
265266
github_token: ${{ secrets.GITHUB_TOKEN }}
267+
show_full_output: true
266268
prompt: |
267-
/doc-pr-fix ${{ steps.pr-info.outputs.number }} $COMMENT_BODY
268-
claude_args: '--allowedTools "Bash(vale:*),Bash(gh:*),Bash(git:*),Read,Write,Edit,Glob,Grep,Skill(doc-pr-fix),Skill(dale)"'
269+
A writer commented on PR ${{ steps.pr-info.outputs.number }} with: $COMMENT_BODY
270+
271+
Your job:
272+
1. Read docs/CLAUDE.md for Netwrix writing standards
273+
2. Run gh pr diff ${{ steps.pr-info.outputs.number }} to see what changed
274+
3. Read the changed files and the existing "Documentation PR Review" comment on the PR
275+
4. Apply the requested fixes using Edit/Write tools
276+
5. Run vale on each edited file and fix any new issues
277+
6. Commit and push: git add <files> && git commit -m "docs: apply fixes from PR review" && git push
278+
7. Post a PR comment summarizing what you fixed:
279+
gh pr comment ${{ steps.pr-info.outputs.number }} --repo ${{ github.repository }} --body-file /tmp/fix-summary.md
280+
281+
IMPORTANT: You MUST commit, push, and post a summary comment. Your task is NOT done until all three happen.
282+
claude_args: '--allowedTools "Bash,Read,Write,Edit,Glob,Grep"'

0 commit comments

Comments
 (0)