]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Update prompt to reduce time spent re-checking comments
authorDaan De Meyer <daan@amutable.com>
Thu, 19 Mar 2026 10:34:25 +0000 (11:34 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 19 Mar 2026 10:46:26 +0000 (11:46 +0100)
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.

.github/workflows/claude-review.yml

index 647a6776c459ad27c4e3fafff7bb958f20cc716b..88d74295c2bd35da49a9783efdc4b416716fbab4 100644 (file)
@@ -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