Repository navigation
running-in-ci: cover PR/issue titles in bang-escape guidance - #319
Conversation
PR #318 restored the bang-escape warning and documented --body-file for comment bodies. Titles are still uncovered: gh has no --title-file flag, so a conventional-commits breaking-change marker in a title like "feat(hooks)\!: rename ..." gets rewritten and ships as "feat(hooks)\\!: ...". First wild occurrence post-#318: worktrunk-bot opened PR max-sixty/worktrunk#2359 with a visibly corrupted title. The commit message itself was clean (git commit uses -F file internally); only the title passed via gh pr create --title "..." got hit. Document the command-substitution workaround: $(cat ...) is evaluated by bash after the preprocessor's string scan, so the file contents stay literal. The pattern applies to gh pr create, gh pr edit, gh issue create, and gh issue edit. Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Second occurrence in the wild while this PR sits open — bumps the count from 1 to 2 and confirms the pattern is deterministic rather than a #2359 one-off. worktrunk#2361 opened at 2026-04-21T20:04:35Z by Same root cause as #2359: Evidence recorded in the monthly gist: https://gist.github.com/44ab1483b29406255dd36141650c894d Both PRs covered conventional-commits breaking-change renames/removals ( |
|
Great, but open a new issue about the line wrapping in the original PR description here |
|
Filed as #320. |
## Problem The `running-in-ci` skill already says "write each paragraph as a single long line and let the browser reflow," but PR #319 still shipped with a body hard-wrapped at ~72 chars. GitHub renders each source newline as `<br>`, so the description reads with mid-sentence breaks instead of reflowing to the reader's window. Filed as #320 per @max-sixty's request. ## Solution Add an explicit do/don't `<example>` block to the existing line-wrapping paragraph, using the observed failure case from #319 as the anti-example. Also clarify two points the prior wording left implicit: - The rule applies to every delivery path — heredoc, `--body "…"`, and `--body-file` — because the source newlines pass through unchanged. - The Write tool does not reflow paragraphs, so authoring the body to a file is not a fix on its own. Code blocks, lists, and tables are called out as still keeping their newlines; only prose paragraphs need to be unwrapped. ## Alternatives considered The issue suggested two other angles: - **Lint the composed body before `gh pr create`** — more robust, but significantly more machinery, and the false-positive shape (prose that happens to line up near 80 chars) is awkward to spec. - **Unify on Write tool + `--body-file` as the canonical path** — doesn't actually solve it: the model can (and did) write a wrapped paragraph to the file. Strengthening the wording is the smallest change with direct line-of-sight to the failure mode. If this recurs after merge, the lint angle stays on the table. ## Testing Skill text only — no automated test exists for skill compliance. The change is visible in the diff and follows the existing `<example>` block convention used elsewhere in the file. --- Closes #320 — automated triage Co-authored-by: tend-agent <[email protected]> Co-authored-by: Claude <[email protected]>
Summary
Extend the bang-escape workaround in
running-in-cito cover PR and issuetitles. PR #318 restored the warning for comment bodies (via
--body-file);titles are still uncovered because
gh pr createhas no--title-fileflag,so a conventional-commits breaking-change marker in a title like
feat(hooks)followed by!:gets preprocessor-rewritten and ships witha literal backslash before the bang.
Evidence
First wild post-#318 occurrence:
worktrunk-botopenedmax-sixty/worktrunk#2359
at 2026-04-21T18:40:19Z. Raw API confirms the title is stored with a
backslash before the bang:
The corresponding commit message on the same branch is clean —
git commituses-F/file internally, so the!survives there.Only
gh pr create --title "feat(hooks)!: ..."hit the preprocessor.Fix
Add one paragraph after the existing
--body-fileguidance documenting thecommand-substitution workaround.
$(cat /tmp/pr-title.txt)is evaluated bybash after the preprocessor's string scan, so the bang in the file stays
literal. Same pattern covers
gh pr edit --title,gh issue create --title,and
gh issue edit --title.Gate assessment
(worktrunk#2309)
which PR skills: restore bang-escape warning (bug still fires in CI harness) #318 fixed; this is a different shape not yet covered.
!in its titlereproduces deterministically until the skill documents the workaround.
Evidence gist:
review-reviewers evidence: max-sixty/worktrunk 2026-04.
Triggering run: https://github.com/max-sixty/tend/actions/runs/24741474472