Files
gentoo-zh/scripts
Zakk f9717dd2ad scripts: keep the pkgcheck comment to the findings it quotes
pkgcheck-comment.sh runs from master with a token that can write
comments, but takes the commit, the package names and the findings from
the report that the pull request's own run produced. A finding
description with a newline and six backticks closed the code block it
was quoted in, so a pull request could add any Markdown, link or
mention to the bot comment.

The commit and package names now keep only atom characters, as
emerge-elog-comment.sh does with its artifact fields. Each finding has
its control characters replaced by spaces and is cut to 300
characters, so it stays one line inside its code block.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-22 20:46:05 +11:00
..