From: Daan De Meyer Date: Thu, 19 Mar 2026 10:34:25 +0000 (+0100) Subject: ci: Update prompt to reduce time spent re-checking comments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c018188164cdf14b9deb4e1da08714d7e8a387d;p=thirdparty%2Fsystemd.git ci: Update prompt to reduce time spent re-checking comments I noticed looking at the logs that claude spends a lot of time re-checking existing comments, so let's update the prompt to hopefully reduce the amount of comments that it re-checks. --- diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 647a6776c45..88d74295c2b 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -232,8 +232,15 @@ jobs: - `issue_comments` — array of issue comments on the PR from the GitHub API - `tracking_comment` — body of the existing tracking comment (null on first run); if present, use it as the basis for your `summary` in Phase 3 - - `review_comments` — array of inline review comments from the GitHub API; - you will need the `id` fields in Phase 3 to populate the `resolve` array + - `review_comments` — array of ALL inline review comments on the PR from the + GitHub API. Use these as context, but observe the following rules: + - Only re-check your own comments (user.login == "github-actions[bot]" and + body starts with "Claude: "). Do NOT validate, re-raise, respond to, or + duplicate comments from other authors. + - Items checked off in the tracking comment (`- [x]`) are resolved. Do NOT + re-check or re-raise review comments that correspond to resolved items. + - You will need the `id` fields of your own unresolved comments in Phase 3 + to populate the `resolve` array. The PR branch has been fetched locally as `pr-review`. Use `git log --reverse --format=%H HEAD..pr-review` to list the PR commits, and