ci: use official Claude PR review comments#31
Conversation
|
Thank you for raising your pull request and contributing to voscript. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #31 +/- ##
=======================================
Coverage 91.18% 91.18%
=======================================
Files 76 76
Lines 3016 3016
=======================================
Hits 2750 2750
Misses 266 266
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
660ac1a to
545f575
Compare
There was a problem hiding this comment.
Pull request overview
Updates the Claude PR review GitHub Actions workflow to use the official anthropics/claude-code-action PR-review pattern, aiming to let Claude post both a top-level summary and inline comments directly on PRs without using a personal token.
Changes:
- Switch trigger to pull_request-only (adds
reopened, removesworkflow_dispatch) and tighten job gating to non-draft PRs from trusted author associations. - Replace the previous shell-based “summary fallback” with
anthropics/claude-code-action@v1usingtrack_progressand a prompt that instructs Claude to post comments viagh+ MCP inline-comment tooling. - Stop passing a personal
GH_TOKENsecret into the workflow.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| continue-on-error: true | ||
| uses: anthropics/claude-code-action@v1 | ||
| env: | ||
| ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }} |
| - name: Checkout repository | ||
| if: ${{ env.ANTHROPIC_API_KEY != '' && env.ANTHROPIC_BASE_URL != '' && env.GH_TOKEN_VALUE != '' }} | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v6 |
|
❤️ Great PR @MapleEve ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! |
Summary
anthropics/claude-code-action@v1without passing a user-owned GitHub token.github_token: secrets.GH_TOKEN,GH_TOKENenv export, andgh pr commenttool access from the no-interaction PR review path.use_sticky_commentand exclude previous automated comments from context to reduce stale self-feedback.Verification
git diff --checkpasses.bun test src/tests/ci-integrations.test.ts.MapleEvewere removed from the PRs.Important
This PR intentionally does not use
secrets.GH_TOKENfor PR review comments. Official Claude-authored comments require the Claude GitHub App integration for the repository.