anthropics / anthropics/claude-code-action

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

オープン
#165 コメント 1 件 リアクション 0 件 担当者 1 名 @ashwin-ant が担当を希望しています GitHub で見る
bug p2
主要言語
TypeScript
スター
8.9k
フォーク
2.1k
平均マージ
3日 9時間
マージ済み PR(30日)
10

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。