anthropics / anthropics/claude-code-action
Pull request reviews try to create a comment on the issue ticket
- Lingua principale
- TypeScript
- Stelle
- 8.9k
- Fork
- 2.1k
- Merge medio
- 3g 9h
- PR unite (30g)
- 10
Descrizione
**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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.