anthropics / anthropics/claude-code-action
Missing PR review notifications after upgrading from beta to main
- Dominant language
- TypeScript
- Stars
- 8.9k
- Forks
- 2.1k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 10
Description
**Describe the bug**
After upgrading from anthropics/claude-code-action@beta to anthropics/claude-code-action@main, I noticed that the PR review notifications feature has been removed or is no longer working.
**To Reproduce**
Steps to reproduce the behavior:
1. Upgrade GitHub Action from anthropics/claude-code-action@beta to anthropics/claude-code-action@main
2. Create a new pull request that triggers the Claude review action
3. Observe that no comments are posted in the PR during or after review
4. Must manually check the Action job summary to see any review results
**Expected behavior**
Based on the beta version behavior, I expected:
- A Claude bot comment when the PR review starts, notifying users that review is in progress
- Display of the current review todo list in the PR comments
- A final comment with the review results after completion
These features provided excellent visibility into the review process directly within the PR interface.
**Screenshots**
N/A
**Workflow yml file**
before:
```
name: Claude Code Review
on:
pull_request:
types: [opened, synchronize]
jobs:
claude-review:
# Run on all PRs except those from specific bots
runs-on: ubuntu-latest
# Skip review for renovate and dependabot to avoid permission issues
if: |
!contains(fromJson('["renovate[bot]", "dependabot[bot]"]'), github.event.pull_request.user.login)
permissions:
contents: write # Changed from read to write
pull-requests: write # Changed from read to write
issues: write # Changed from read to write
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: ${{ github.event.pull_request.commits <= 20 && 0 || 50 }}
- name: Build Claude Review Prompt
id: build_prompt
run: |
chmod +x .github/scripts/build-claude-prompt.sh
./.github/scripts/build-claude-prompt.sh "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}"
- name: Run Claude Code Review
id: claude-review
uses: anthropics/claude-code-action@beta
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# Use PAT for bot-created PRs if available
github_token: ${{ secrets.CLAUDE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
# Direct prompt for automated review (no @claude mention needed)
# Customize prompt based on PR author type
direct_prompt: ${{ github.event.pull_request.user.type == 'Bot' && steps.build_prompt.outputs.bot_prompt || steps.build_prompt.outputs.prompt }}
```
after:
```
name: Claude Code Review
on:
pull_request:
types: [opened, synchronize]
jobs:
claude-review:
# Run on all PRs except those from specific bots
runs-on: ubuntu-latest
# Skip review for renovate and dependabot to avoid permission issues
if: |
!contains(fromJson('["renovate[bot]", "dependabot[bot]"]'), github.event.pull_request.user.login)
permissions:
contents: write # Changed from read to write
pull-requests: write # Changed from read to write
issues: write # Changed from read to write
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: ${{ github.event.pull_request.commits <= 20 && 0 || 50 }}
- name: Build Claude Review Prompt
id: build_prompt
run: |
chmod +x .github/scripts/build-claude-prompt.sh
./.github/scripts/build-claude-prompt.sh "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}"
- name: Run Claude Code Review
id: claude-review
uses: anthropics/claude-code-action@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# Use PAT for bot-created PRs if available
github_token: ${{ secrets.CLAUDE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
# Direct prompt for automated review (no @claude mention needed)
# Customize prompt based on PR author type
prompt: ${{ github.event.pull_request.user.type == 'Bot' && steps.build_prompt.outputs.bot_prompt || steps.build_prompt.outputs.prompt }}
```
**API Provider**
[ ] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex
**Additional context**
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.