]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Generalize escaping instructions in claude-review prompt
authorDaan De Meyer <daan@amutable.com>
Tue, 24 Mar 2026 09:15:21 +0000 (10:15 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 24 Mar 2026 09:27:35 +0000 (10:27 +0100)
.github/workflows/claude-review.yml

index 88d74295c2bd35da49a9783efdc4b416716fbab4..6e0b25c4536c2c9e1230b676c4f8a67e0b9bd3de 100644 (file)
@@ -275,9 +275,6 @@ jobs:
               The `commit` field MUST be the SHA of the commit being reviewed. Only
               comment on changes in that commit — not preceding commits.
 
-              Do NOT escape characters in `body`. Write plain markdown — no backslash
-              escaping of `!` or other characters.
-
               `line` should be a line number from the NEW side of the diff **that appears
               inside a diff hunk**. GitHub rejects lines outside the diff context. If you
               cannot determine a valid diff line, omit `line`.
@@ -351,6 +348,12 @@ jobs:
               not available, git commands that failed, etc.), append a `### Errors`
               section to the summary listing each failed action and the error message.
 
+              ## Output formatting
+
+              Do NOT escape characters in `body` or `summary`. Write plain markdown — no
+              backslash escaping of `!` or other characters. In particular, HTML comments
+              like `<!-- ... -->` must be written verbatim, never as `<\!-- ... -->`.
+
               ## CRITICAL: Write review result to file
 
               Your FINAL action must be to write `review-result.json` in the repo