anthropics / anthropics/claude-code-action
Pull request reviews try to create a comment on the issue ticket
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8.9k
- Forks
- 2.1k
- Ø Merge
- 3 T. 9 Std.
- Gemergte PRs (30 T.)
- 10
Beschreibung
**Describe the bug**
I'm using a copy of your workflow to add reviews on PRs - on kickoff of a new review I hit the following error:
```
POST /repos/***/issues/43/comments - 403 with id 0441:18787C:1780AA0:2F09A4B:684AFA01 in 103ms
Error in initial comment: 11 | /**
12 | * Response object if a response was received
13 | */
14 | response;
15 | constructor(message, statusCode, options) {
16 | super(message);
```
The issue seems to originate [here](https://github.com/anthropics/claude-code-action/blob/b10f287695caa3a755ab23184c63137ab72b7843/src/github/operations/comments/create-initial.ts#L29) - should it also be checking `isPullRequestReviewEvent()` or `isPullRequestEvent()`
The [reference workflow](https://github.com/anthropics/claude-code-action/blob/main/.github/workflows/claude-review.yml) doesnt have comment writing permissions...
**To Reproduce**
Steps to reproduce the behavior:
1. In a new repo use a workflow based on the reference
2. Create a new PR
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.