From 1d6a48ce32c6e691e1b62f44011219414688f9db Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2026 06:02:28 +0000 Subject: [PATCH] refactor: remove redundant footer intermediate variable in handle_noop_message Simplify ensureAgentRunsIssue by directly assigning the result of generateFooterWithExpiration to parentBody, eliminating the unnecessary footer intermediate variable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- actions/setup/js/handle_noop_message.cjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/actions/setup/js/handle_noop_message.cjs b/actions/setup/js/handle_noop_message.cjs index d374e26d73..2a47479ecb 100644 --- a/actions/setup/js/handle_noop_message.cjs +++ b/actions/setup/js/handle_noop_message.cjs @@ -48,12 +48,10 @@ async function ensureAgentRunsIssue() { const templatePath = `${process.env.RUNNER_TEMP}/gh-aw/prompts/noop_runs_issue.md`; const parentBodyContent = fs.readFileSync(templatePath, "utf8"); - // Add expiration marker (30 days from now) inside the quoted section using helper - const footer = generateFooterWithExpiration({ + const parentBody = generateFooterWithExpiration({ footerText: parentBodyContent, expiresHours: 24 * 30, // 30 days }); - const parentBody = footer; const { data: newIssue } = await github.rest.issues.create({ owner,