You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by po...@apache.org on 2026/10/04 00:10:24 UTC

(magpie) branch main updated: fix(release-management): pass PR and comment bodies through a file (#1502)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/magpie.git


The following commit(s) were added to refs/heads/main by this push:
     new 0c9275b3 fix(release-management): pass PR and comment bodies through a file (#1502)
0c9275b3 is described below

commit 0c9275b3352b1771ace98eba90f1b2eee2f8dd86
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun Oct 4 02:10:18 2026 +0200

    fix(release-management): pass PR and comment bodies through a file (#1502)
    
    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
---
 plugins/magpie-release-management/skills/announce-draft/SKILL.md | 8 ++++----
 plugins/magpie-release-management/skills/audit-report/SKILL.md   | 7 ++++---
 plugins/magpie-release-management/skills/rc-cut/SKILL.md         | 7 ++++---
 3 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/plugins/magpie-release-management/skills/announce-draft/SKILL.md b/plugins/magpie-release-management/skills/announce-draft/SKILL.md
index 24c6e552..d82f7c8f 100644
--- a/plugins/magpie-release-management/skills/announce-draft/SKILL.md
+++ b/plugins/magpie-release-management/skills/announce-draft/SKILL.md
@@ -25,7 +25,7 @@ argument-hint: "<version> [--planning-issue <url>]"
 capability: capability:resolve
 surface_hash: sha256:edffafcd9d9948ab
 license: Apache-2.0
-measured_tokens: 6907
+measured_tokens: 6928
 ---
 
 <!-- SPDX-License-Identifier: Apache-2.0
@@ -497,9 +497,9 @@ reviewers reported each, and every entry in `warnings` verbatim.
 <!-- END MAGPIE BLOCK: pre-pr-adversarial-review -->
 
 Present the PR title, body, and file scope to the RM. Ask for
-confirmation before opening the PR. If the RM confirms, open the PR
-via `gh pr create --repo <site_repo> --title "<title>" --body "<body>"
---base main`.
+confirmation before opening the PR. If the RM confirms, write the
+approved body to a file in the session scratch directory and open the PR via
+`gh pr create --web --repo <site_repo> --title "<title>" --body-file <scratch>/announce-pr-body.md --base main`.
 
 Return ONLY valid JSON with this structure:
 
diff --git a/plugins/magpie-release-management/skills/audit-report/SKILL.md b/plugins/magpie-release-management/skills/audit-report/SKILL.md
index 0f3ce7f3..66ab3e5e 100644
--- a/plugins/magpie-release-management/skills/audit-report/SKILL.md
+++ b/plugins/magpie-release-management/skills/audit-report/SKILL.md
@@ -23,7 +23,7 @@ argument-hint: "<version> [--planning-issue <url>]"
 capability: capability:stats
 surface_hash: sha256:576d71b04f203cd8
 license: Apache-2.0
-measured_tokens: 6629
+measured_tokens: 6651
 ---
 
 <!-- SPDX-License-Identifier: Apache-2.0
@@ -496,8 +496,9 @@ reviewers reported each, and every entry in `warnings` verbatim.
 <!-- END MAGPIE BLOCK: pre-pr-adversarial-review -->
 
 Present the PR title, body, and target file path to the RM. Ask for
-confirmation before opening the PR. If the RM confirms, open the PR via
-`gh pr create --repo <upstream> --title "<title>" --body "<body>" --base main`.
+confirmation before opening the PR. If the RM confirms, write the
+approved body to a file in the session scratch directory and open the PR via
+`gh pr create --web --repo <upstream> --title "<title>" --body-file <scratch>/audit-report-pr-body.md --base main`.
 
 Return ONLY valid JSON with this structure:
 
diff --git a/plugins/magpie-release-management/skills/rc-cut/SKILL.md b/plugins/magpie-release-management/skills/rc-cut/SKILL.md
index 6e433e0b..72097e92 100644
--- a/plugins/magpie-release-management/skills/rc-cut/SKILL.md
+++ b/plugins/magpie-release-management/skills/rc-cut/SKILL.md
@@ -31,7 +31,7 @@ argument-hint: "<version> rc<N>"
 capability: capability:resolve
 surface_hash: sha256:60623e456e72bbf6
 license: Apache-2.0
-measured_tokens: 11783
+measured_tokens: 11801
 ---
 
 <!-- SPDX-License-Identifier: Apache-2.0
@@ -786,8 +786,9 @@ The comment must include:
 - The proposed next label: `rc-staging`.
 
 Present the proposed comment to the RM. Ask for confirmation before
-posting. If the RM confirms, post the comment via
-`gh issue comment <planning-issue-number> --repo <upstream> --body "<body>"`.
+posting. If the RM confirms, write the approved comment to a file in the
+session scratch directory and post it via
+`gh issue comment <planning-issue-number> --repo <upstream> --body-file <scratch>/rc-cut-comment.md`.
 
 Return ONLY valid JSON with this structure: