Repository navigation
fix(release-management): pass PR and comment bodies through a file - #1502
Merged
Merged
Conversation
announce-draft, audit-report and rc-cut told the agent to post with an inline --body "<body>". Under the secure setup gh runs outside the sandbox only as a plain command, and a markdown body inlined on the command line gets rewritten by the shell. Write the approved body to a scratch file and pass --body-file, as AGENTS.md requires. The two PR creations also gain --web, so the release manager reviews the PR in the browser before submitting it, as security-issue-fix does. Generated-by: Claude Opus 5
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.
Behaviour fix ahead of the release-management optimization (#1345).
Summary
release-announce-draft,release-audit-reportandrelease-rc-cuttold the agent to post with an inline--body "<body>".Under the secure setup,
ghruns outside the sandbox only as a plain command, and the shell rewrites a markdown body passed inline.Each now writes the approved body to a scratch file and passes
--body-file, as AGENTS.md requires.The two
gh pr createcalls also gain--web, so the release manager reviews the PR in the browser before submitting it, assecurity-issue-fixdoes.Test plan
release-announce-draftstep-3 (the only eval-extracted section touched): 3/3🤖 Generated with Claude Code