anthropics / anthropics/claude-code-action

Pull request reviews try to create a comment on the issue ticket

Abierto
#165 1 comentario 0 reacciones 1 asignado Reclamado por @ashwin-ant Ver en GitHub
bug p2
Lenguaje dominante
TypeScript
Estrellas
8.9k
Forks
2.1k
Merge medio
3 d 9 h
PR fusionados (30 d)
10

Descripción

**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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.