ci: Generalize escaping instructions in claude-review prompt

This commit is contained in:
Daan De Meyer
2026-03-24 10:15:21 +01:00
committed by Daan De Meyer
parent 3af158759f
commit 7aa94251fe

View 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