fix(ci): correct markdown structure of the issue-linking failure comment - #37093
Open
nollymar wants to merge 1 commit into
Open
fix(ci): correct markdown structure of the issue-linking failure comment#37093nollymar wants to merge 1 commit into
nollymar wants to merge 1 commit into
Conversation
The "Issue Linking Required" PR comment was built with a printf whose format string had 21 %s slots for 22 arguments, and whose blank-line boundaries did not match the argument groups. On GitHub this rendered with broken lists (the Option 3 heading swallowed into the numbered list), stray blank bullets, the footer glued onto the last paragraph, and trailing garbage newlines from bash reusing the format string. Replace the printf with a quoted heredoc holding the literal markdown. Wording is unchanged; only the blank-line structure is corrected. The "Issue Linking Required" header stays byte-identical so the dedup check and the auto-removal step keep matching existing comments. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
|
Claude finished @nollymar's task in 1m 25s —— View job Code ReviewReviewed the diff in
FindingsNo issues found. The
Wording is unchanged; only blank-line/list structure is corrected. The removal of the fragile 21-slot/22-arg · |
mbiuki
approved these changes
Aug 18, 2026
6 tasks
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Aug 18, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The "❌ Issue Linking Required" comment that this repo's link-issue check posts on unlinked PRs rendered with broken markdown:
---separator and the italic footer were glued onto the "Why is this required?" paragraph (…they solve.---*This comment…*)Why
The comment body was built with a single
printfwhose format string had 21%sslots for 22 arguments, and whose\n/\n\ngroup boundaries did not line up with the argument groups. With more args than slots, bash reuses the format string, producing the glued footer and trailing newlines. This is the second time this printf drifted out of alignment (a bullet was added without adding a format slot), so this PR removes the fragile pattern instead of re-aligning it.How
Replaced the
printfin the "Add failure comment to PR" step with a quoted heredoc holding the literal markdown. Wording is unchanged; only blank-line structure is corrected. The## ❌ Issue Linking Requiredheader is byte-identical, so the dedup check and the "Remove failure comment if issue is now resolved" step keep matching (stale broken comments still get cleaned up). The quoted delimiter keeps the body non-interpolating, so no injection surface is added.Verification
---standalone, no trailing garbage.gh api /markdown): Option 3 is a paragraph outside the<ol>, one 3-item ordered list, two bullet lists, standalone<hr>, italic footer, no empty list items.actionlint: no new findings vsmain; drops one (SC2183, shellcheck's own warning about the printf slot/argument mismatch).🤖 Generated with Claude Code
This PR fixes #37100