From e9a1de5c5714fa5dae4595fc2cf537b6a56f19d5 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 18 Dec 2025 17:58:11 +0000
Subject: [PATCH 1/3] Initial plan
From 73509878c879daf2fea4d4c0cf59d6a3087e61b4 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 18 Dec 2025 18:10:03 +0000
Subject: [PATCH 2/3] Reduce header level in staged preview summaries from h3
to h4
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
pkg/workflow/js/create_issue.cjs | 2 +-
pkg/workflow/js/create_issue.test.cjs | 2 +-
pkg/workflow/js/create_pr_review_comment.cjs | 2 +-
pkg/workflow/js/staged_preview.test.cjs | 18 +++++++++---------
pkg/workflow/js/update_release.cjs | 2 +-
pkg/workflow/js/update_runner.cjs | 2 +-
pkg/workflow/js/update_runner.test.cjs | 6 +++---
7 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/pkg/workflow/js/create_issue.cjs b/pkg/workflow/js/create_issue.cjs
index f7942674b1f..38529726029 100644
--- a/pkg/workflow/js/create_issue.cjs
+++ b/pkg/workflow/js/create_issue.cjs
@@ -46,7 +46,7 @@ async function main() {
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/pkg/workflow/js/create_issue.test.cjs b/pkg/workflow/js/create_issue.test.cjs
index 0583f0e10ac..ed69edd9f31 100644
--- a/pkg/workflow/js/create_issue.test.cjs
+++ b/pkg/workflow/js/create_issue.test.cjs
@@ -259,7 +259,7 @@ const mockCore = {
expect(mockCore.summary.write).toHaveBeenCalled());
const infoCall = mockCore.info.mock.calls.find(call => call[0].includes("🎠Staged Mode: Create Issues Preview"));
(expect(infoCall).toBeDefined(),
- expect(infoCall[0]).toContain("### Issue 1"),
+ expect(infoCall[0]).toContain("#### Issue 1"),
expect(infoCall[0]).toContain("**Title:** Staged Issue Title"),
expect(infoCall[0]).toContain("**Body:**"),
expect(infoCall[0]).toContain("Staged issue body content"),
diff --git a/pkg/workflow/js/create_pr_review_comment.cjs b/pkg/workflow/js/create_pr_review_comment.cjs
index fd56d5c584b..6dc42781ed3 100644
--- a/pkg/workflow/js/create_pr_review_comment.cjs
+++ b/pkg/workflow/js/create_pr_review_comment.cjs
@@ -31,7 +31,7 @@ async function main() {
description: "The following review comments would be created if staged mode was disabled:",
items: reviewCommentItems,
renderItem: (item, index) => {
- let content = `### Review Comment ${index + 1}\n`;
+ let content = `#### Review Comment ${index + 1}\n`;
if (item.pull_request_number) {
const repoUrl = getRepositoryUrl();
const pullUrl = `${repoUrl}/pull/${item.pull_request_number}`;
diff --git a/pkg/workflow/js/staged_preview.test.cjs b/pkg/workflow/js/staged_preview.test.cjs
index 3e8ce4d836b..9baeeb7ef13 100644
--- a/pkg/workflow/js/staged_preview.test.cjs
+++ b/pkg/workflow/js/staged_preview.test.cjs
@@ -32,7 +32,7 @@ describe("staged_preview.cjs", () => {
},
],
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.body) {
content += `**Body:**\n${item.body}\n\n`;
@@ -52,7 +52,7 @@ describe("staged_preview.cjs", () => {
const summaryContent = mockCore.summary.addRaw.mock.calls[0][0];
expect(summaryContent).toContain("## 🎠Staged Mode: Create Issues Preview");
expect(summaryContent).toContain("The following issues would be created if staged mode was disabled:");
- expect(summaryContent).toContain("### Issue 1");
+ expect(summaryContent).toContain("#### Issue 1");
expect(summaryContent).toContain("**Title:** Test Issue");
expect(summaryContent).toContain("**Body:**\nTest body");
expect(summaryContent).toContain("**Labels:** bug, enhancement");
@@ -73,7 +73,7 @@ describe("staged_preview.cjs", () => {
{ issue_number: 3, body: "New Body 3" },
],
renderItem: (item, index) => {
- let content = `### Issue Update ${index + 1}\n`;
+ let content = `#### Issue Update ${index + 1}\n`;
if (item.issue_number) {
content += `**Target Issue:** #${item.issue_number}\n\n`;
}
@@ -94,14 +94,14 @@ describe("staged_preview.cjs", () => {
const summaryContent = mockCore.summary.addRaw.mock.calls[0][0];
expect(summaryContent).toContain("## 🎠Staged Mode: Update Issues Preview");
- expect(summaryContent).toContain("### Issue Update 1");
+ expect(summaryContent).toContain("#### Issue Update 1");
expect(summaryContent).toContain("**Target Issue:** #1");
expect(summaryContent).toContain("**New Title:** New Title 1");
expect(summaryContent).toContain("**New Status:** open");
- expect(summaryContent).toContain("### Issue Update 2");
+ expect(summaryContent).toContain("#### Issue Update 2");
expect(summaryContent).toContain("**Target Issue:** #2");
expect(summaryContent).toContain("**New Status:** closed");
- expect(summaryContent).toContain("### Issue Update 3");
+ expect(summaryContent).toContain("#### Issue Update 3");
expect(summaryContent).toContain("**New Body:**\nNew Body 3");
// Check that all items are separated by dividers
@@ -163,7 +163,7 @@ describe("staged_preview.cjs", () => {
],
renderItem: (item, index) => {
const getRepositoryUrl = () => "https://github.com/test/repo";
- let content = `### Review Comment ${index + 1}\n`;
+ let content = `#### Review Comment ${index + 1}\n`;
if (item.pull_request_number) {
const repoUrl = getRepositoryUrl();
const pullUrl = `${repoUrl}/pull/${item.pull_request_number}`;
@@ -186,14 +186,14 @@ describe("staged_preview.cjs", () => {
const summaryContent = mockCore.summary.addRaw.mock.calls[0][0];
expect(summaryContent).toContain("## 🎠Staged Mode: Create PR Review Comments Preview");
- expect(summaryContent).toContain("### Review Comment 1");
+ expect(summaryContent).toContain("#### Review Comment 1");
expect(summaryContent).toContain("**Target PR:** [#123](https://github.com/test/repo/pull/123)");
expect(summaryContent).toContain("**File:** src/main.js");
expect(summaryContent).toContain("**Line:** 42");
expect(summaryContent).toContain("**Start Line:** 40");
expect(summaryContent).toContain("**Side:** RIGHT");
expect(summaryContent).toContain("**Body:**\nThis needs improvement");
- expect(summaryContent).toContain("### Review Comment 2");
+ expect(summaryContent).toContain("#### Review Comment 2");
expect(summaryContent).toContain("**Target:** Current PR");
expect(summaryContent).toContain("**File:** src/utils.js");
expect(summaryContent).toContain("**Side:** LEFT");
diff --git a/pkg/workflow/js/update_release.cjs b/pkg/workflow/js/update_release.cjs
index d04a5cee1e5..e0fc653f84d 100644
--- a/pkg/workflow/js/update_release.cjs
+++ b/pkg/workflow/js/update_release.cjs
@@ -29,7 +29,7 @@ async function main() {
description: "The following release updates would be applied if staged mode was disabled:",
items: updateItems,
renderItem: (item, index) => {
- let content = `### Release Update ${index + 1}\n`;
+ let content = `#### Release Update ${index + 1}\n`;
content += `**Tag:** ${item.tag || "(inferred from event context)"}\n`;
content += `**Operation:** ${item.operation}\n\n`;
content += `**Body Content:**\n${item.body}\n\n`;
diff --git a/pkg/workflow/js/update_runner.cjs b/pkg/workflow/js/update_runner.cjs
index 55be23995b9..ba20cfa0100 100644
--- a/pkg/workflow/js/update_runner.cjs
+++ b/pkg/workflow/js/update_runner.cjs
@@ -298,7 +298,7 @@ function createRenderStagedItem(config) {
const { entityName, numberField, targetLabel, currentTargetText, includeOperation = false } = config;
return function renderStagedItem(item, index) {
- let content = `### ${entityName} Update ${index + 1}\n`;
+ let content = `#### ${entityName} Update ${index + 1}\n`;
if (item[numberField]) {
content += `**${targetLabel}** #${item[numberField]}\n\n`;
} else {
diff --git a/pkg/workflow/js/update_runner.test.cjs b/pkg/workflow/js/update_runner.test.cjs
index 08befe77280..14f8199eadb 100644
--- a/pkg/workflow/js/update_runner.test.cjs
+++ b/pkg/workflow/js/update_runner.test.cjs
@@ -406,7 +406,7 @@ describe("update_runner.cjs", () => {
const result = render({ issue_number: 123, title: "New Title" }, 0);
- expect(result).toContain("### Issue Update 1");
+ expect(result).toContain("#### Issue Update 1");
expect(result).toContain("**Target Issue:** #123");
expect(result).toContain("**New Title:** New Title");
});
@@ -422,7 +422,7 @@ describe("update_runner.cjs", () => {
const result = render({ title: "New Title" }, 0);
- expect(result).toContain("### Issue Update 1");
+ expect(result).toContain("#### Issue Update 1");
expect(result).toContain("**Target:** Current issue");
expect(result).toContain("**New Title:** New Title");
});
@@ -499,7 +499,7 @@ describe("update_runner.cjs", () => {
const result = render({ title: "Title" }, 4);
- expect(result).toContain("### Issue Update 5");
+ expect(result).toContain("#### Issue Update 5");
});
});
From ed6c1ebe1240b2cbcd03ad47963551b80cc5da43 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 18 Dec 2025 18:14:21 +0000
Subject: [PATCH 3/3] Complete header level reduction - all tests pass
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
.../workflows/breaking-change-checker.lock.yml | 2 +-
.github/workflows/campaign-generator.lock.yml | 6 +++---
.github/workflows/changeset.lock.yml | 6 +++---
.github/workflows/ci-doctor.lock.yml | 2 +-
.../workflows/cli-consistency-checker.lock.yml | 2 +-
.github/workflows/cli-version-checker.lock.yml | 2 +-
.github/workflows/daily-file-diet.lock.yml | 2 +-
.../daily-multi-device-docs-tester.lock.yml | 2 +-
.github/workflows/dependabot-go-checker.lock.yml | 2 +-
.../workflows/duplicate-code-detector.lock.yml | 2 +-
.github/workflows/go-pattern-detector.lock.yml | 2 +-
.github/workflows/grumpy-reviewer.lock.yml | 2 +-
.../workflows/human-ai-collaboration.lock.yml | 2 +-
.github/workflows/incident-response.lock.yml | 2 +-
.github/workflows/intelligence.lock.yml | 2 +-
.github/workflows/issue-arborist.lock.yml | 2 +-
.github/workflows/org-wide-rollout.lock.yml | 2 +-
.github/workflows/plan.lock.yml | 2 +-
.github/workflows/poem-bot.lock.yml | 10 +++++-----
.github/workflows/pr-nitpick-reviewer.lock.yml | 2 +-
.github/workflows/release.lock.yml | 2 +-
.github/workflows/security-compliance.lock.yml | 2 +-
.../semantic-function-refactor.lock.yml | 2 +-
.github/workflows/smoke-claude.lock.yml | 2 +-
.github/workflows/smoke-codex.lock.yml | 2 +-
.../workflows/smoke-copilot-playwright.lock.yml | 2 +-
.../workflows/smoke-copilot-safe-inputs.lock.yml | 2 +-
.github/workflows/smoke-copilot.lock.yml | 2 +-
.github/workflows/smoke-detector.lock.yml | 2 +-
.github/workflows/speckit-dispatcher.lock.yml | 2 +-
.github/workflows/stale-repo-identifier.lock.yml | 2 +-
.github/workflows/sub-issue-closer.lock.yml | 6 +++---
.github/workflows/super-linter.lock.yml | 2 +-
.github/workflows/video-analyzer.lock.yml | 2 +-
pkg/workflow/js/add_comment.test.cjs | 16 ++++++----------
35 files changed, 50 insertions(+), 54 deletions(-)
diff --git a/.github/workflows/breaking-change-checker.lock.yml b/.github/workflows/breaking-change-checker.lock.yml
index 1076747fc46..d247fc762b7 100644
--- a/.github/workflows/breaking-change-checker.lock.yml
+++ b/.github/workflows/breaking-change-checker.lock.yml
@@ -7602,7 +7602,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/campaign-generator.lock.yml b/.github/workflows/campaign-generator.lock.yml
index 28bc5505a27..e996d86bd39 100644
--- a/.github/workflows/campaign-generator.lock.yml
+++ b/.github/workflows/campaign-generator.lock.yml
@@ -7501,7 +7501,7 @@ jobs:
};
EOF_95d23c7d
- cat > /tmp/gh-aw/scripts/update_runner.cjs << 'EOF_1b5d3c1d'
+ cat > /tmp/gh-aw/scripts/update_runner.cjs << 'EOF_006d32d7'
// @ts-check
///
@@ -7802,7 +7802,7 @@ jobs:
const { entityName, numberField, targetLabel, currentTargetText, includeOperation = false } = config;
return function renderStagedItem(item, index) {
- let content = `### ${entityName} Update ${index + 1}\n`;
+ let content = `#### ${entityName} Update ${index + 1}\n`;
if (item[numberField]) {
content += `**${targetLabel}** #${item[numberField]}\n\n`;
} else {
@@ -7854,7 +7854,7 @@ jobs:
createGetSummaryLine,
};
- EOF_1b5d3c1d
+ EOF_006d32d7
- name: Assign To Agent
id: assign_to_agent
if: ((!cancelled()) && (needs.agent.result != 'skipped')) && (contains(needs.agent.outputs.output_types, 'assign_to_agent'))
diff --git a/.github/workflows/changeset.lock.yml b/.github/workflows/changeset.lock.yml
index cba0d894bbb..798374cd430 100644
--- a/.github/workflows/changeset.lock.yml
+++ b/.github/workflows/changeset.lock.yml
@@ -8079,7 +8079,7 @@ jobs:
};
EOF_d0693c3b
- cat > /tmp/gh-aw/scripts/update_runner.cjs << 'EOF_1b5d3c1d'
+ cat > /tmp/gh-aw/scripts/update_runner.cjs << 'EOF_006d32d7'
// @ts-check
///
@@ -8380,7 +8380,7 @@ jobs:
const { entityName, numberField, targetLabel, currentTargetText, includeOperation = false } = config;
return function renderStagedItem(item, index) {
- let content = `### ${entityName} Update ${index + 1}\n`;
+ let content = `#### ${entityName} Update ${index + 1}\n`;
if (item[numberField]) {
content += `**${targetLabel}** #${item[numberField]}\n\n`;
} else {
@@ -8432,7 +8432,7 @@ jobs:
createGetSummaryLine,
};
- EOF_1b5d3c1d
+ EOF_006d32d7
- name: Update Pull Request
id: update_pull_request
if: ((!cancelled()) && (needs.agent.result != 'skipped')) && (contains(needs.agent.outputs.output_types, 'update_pull_request'))
diff --git a/.github/workflows/ci-doctor.lock.yml b/.github/workflows/ci-doctor.lock.yml
index 6d17bd3fd31..ae54a2d7799 100644
--- a/.github/workflows/ci-doctor.lock.yml
+++ b/.github/workflows/ci-doctor.lock.yml
@@ -7980,7 +7980,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/cli-consistency-checker.lock.yml b/.github/workflows/cli-consistency-checker.lock.yml
index a27ed4ed2ed..e415fd02dd6 100644
--- a/.github/workflows/cli-consistency-checker.lock.yml
+++ b/.github/workflows/cli-consistency-checker.lock.yml
@@ -7392,7 +7392,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/cli-version-checker.lock.yml b/.github/workflows/cli-version-checker.lock.yml
index 28a71e108bf..4f90338df82 100644
--- a/.github/workflows/cli-version-checker.lock.yml
+++ b/.github/workflows/cli-version-checker.lock.yml
@@ -7182,7 +7182,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/daily-file-diet.lock.yml b/.github/workflows/daily-file-diet.lock.yml
index 3950948f75d..8562e62023d 100644
--- a/.github/workflows/daily-file-diet.lock.yml
+++ b/.github/workflows/daily-file-diet.lock.yml
@@ -8676,7 +8676,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/daily-multi-device-docs-tester.lock.yml b/.github/workflows/daily-multi-device-docs-tester.lock.yml
index d63fd0fe1d5..6b1ba78810b 100644
--- a/.github/workflows/daily-multi-device-docs-tester.lock.yml
+++ b/.github/workflows/daily-multi-device-docs-tester.lock.yml
@@ -7004,7 +7004,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/dependabot-go-checker.lock.yml b/.github/workflows/dependabot-go-checker.lock.yml
index c1c61fbaa73..ecdd387ad78 100644
--- a/.github/workflows/dependabot-go-checker.lock.yml
+++ b/.github/workflows/dependabot-go-checker.lock.yml
@@ -8091,7 +8091,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/duplicate-code-detector.lock.yml b/.github/workflows/duplicate-code-detector.lock.yml
index f6867e5ba33..fc2470c9937 100644
--- a/.github/workflows/duplicate-code-detector.lock.yml
+++ b/.github/workflows/duplicate-code-detector.lock.yml
@@ -7047,7 +7047,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/go-pattern-detector.lock.yml b/.github/workflows/go-pattern-detector.lock.yml
index 29e86728908..0c11aa57488 100644
--- a/.github/workflows/go-pattern-detector.lock.yml
+++ b/.github/workflows/go-pattern-detector.lock.yml
@@ -6970,7 +6970,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/grumpy-reviewer.lock.yml b/.github/workflows/grumpy-reviewer.lock.yml
index dbc08703847..fc2770af225 100644
--- a/.github/workflows/grumpy-reviewer.lock.yml
+++ b/.github/workflows/grumpy-reviewer.lock.yml
@@ -8872,7 +8872,7 @@ jobs:
description: "The following review comments would be created if staged mode was disabled:",
items: reviewCommentItems,
renderItem: (item, index) => {
- let content = `### Review Comment ${index + 1}\n`;
+ let content = `#### Review Comment ${index + 1}\n`;
if (item.pull_request_number) {
const repoUrl = getRepositoryUrl();
const pullUrl = `${repoUrl}/pull/${item.pull_request_number}`;
diff --git a/.github/workflows/human-ai-collaboration.lock.yml b/.github/workflows/human-ai-collaboration.lock.yml
index a91bd88d3d8..2c51eee9dd3 100644
--- a/.github/workflows/human-ai-collaboration.lock.yml
+++ b/.github/workflows/human-ai-collaboration.lock.yml
@@ -7904,7 +7904,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/incident-response.lock.yml b/.github/workflows/incident-response.lock.yml
index afaa9b04a80..5fbf14b5c74 100644
--- a/.github/workflows/incident-response.lock.yml
+++ b/.github/workflows/incident-response.lock.yml
@@ -9128,7 +9128,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/intelligence.lock.yml b/.github/workflows/intelligence.lock.yml
index 462e870cd36..7a029db5f7a 100644
--- a/.github/workflows/intelligence.lock.yml
+++ b/.github/workflows/intelligence.lock.yml
@@ -8600,7 +8600,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/issue-arborist.lock.yml b/.github/workflows/issue-arborist.lock.yml
index 70f374f278b..b8dbbaf8a84 100644
--- a/.github/workflows/issue-arborist.lock.yml
+++ b/.github/workflows/issue-arborist.lock.yml
@@ -7529,7 +7529,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/org-wide-rollout.lock.yml b/.github/workflows/org-wide-rollout.lock.yml
index b6fe1f3fe12..2aa23e29c2f 100644
--- a/.github/workflows/org-wide-rollout.lock.yml
+++ b/.github/workflows/org-wide-rollout.lock.yml
@@ -9156,7 +9156,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/plan.lock.yml b/.github/workflows/plan.lock.yml
index a779d818e83..631350325b1 100644
--- a/.github/workflows/plan.lock.yml
+++ b/.github/workflows/plan.lock.yml
@@ -8431,7 +8431,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/poem-bot.lock.yml b/.github/workflows/poem-bot.lock.yml
index 1e24642a989..3ef943dc794 100644
--- a/.github/workflows/poem-bot.lock.yml
+++ b/.github/workflows/poem-bot.lock.yml
@@ -10612,7 +10612,7 @@ jobs:
};
EOF_95d23c7d
- cat > /tmp/gh-aw/scripts/update_runner.cjs << 'EOF_1b5d3c1d'
+ cat > /tmp/gh-aw/scripts/update_runner.cjs << 'EOF_006d32d7'
// @ts-check
///
@@ -10913,7 +10913,7 @@ jobs:
const { entityName, numberField, targetLabel, currentTargetText, includeOperation = false } = config;
return function renderStagedItem(item, index) {
- let content = `### ${entityName} Update ${index + 1}\n`;
+ let content = `#### ${entityName} Update ${index + 1}\n`;
if (item[numberField]) {
content += `**${targetLabel}** #${item[numberField]}\n\n`;
} else {
@@ -10965,7 +10965,7 @@ jobs:
createGetSummaryLine,
};
- EOF_1b5d3c1d
+ EOF_006d32d7
- name: Create Issue
id: create_issue
if: ((!cancelled()) && (needs.agent.result != 'skipped')) && (contains(needs.agent.outputs.output_types, 'create_issue'))
@@ -11024,7 +11024,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
@@ -12582,7 +12582,7 @@ jobs:
description: "The following review comments would be created if staged mode was disabled:",
items: reviewCommentItems,
renderItem: (item, index) => {
- let content = `### Review Comment ${index + 1}\n`;
+ let content = `#### Review Comment ${index + 1}\n`;
if (item.pull_request_number) {
const repoUrl = getRepositoryUrl();
const pullUrl = `${repoUrl}/pull/${item.pull_request_number}`;
diff --git a/.github/workflows/pr-nitpick-reviewer.lock.yml b/.github/workflows/pr-nitpick-reviewer.lock.yml
index d15f98b21c5..9c9bbe14179 100644
--- a/.github/workflows/pr-nitpick-reviewer.lock.yml
+++ b/.github/workflows/pr-nitpick-reviewer.lock.yml
@@ -9718,7 +9718,7 @@ jobs:
description: "The following review comments would be created if staged mode was disabled:",
items: reviewCommentItems,
renderItem: (item, index) => {
- let content = `### Review Comment ${index + 1}\n`;
+ let content = `#### Review Comment ${index + 1}\n`;
if (item.pull_request_number) {
const repoUrl = getRepositoryUrl();
const pullUrl = `${repoUrl}/pull/${item.pull_request_number}`;
diff --git a/.github/workflows/release.lock.yml b/.github/workflows/release.lock.yml
index a772ffb23f6..7b39f8ca27d 100644
--- a/.github/workflows/release.lock.yml
+++ b/.github/workflows/release.lock.yml
@@ -7045,7 +7045,7 @@ jobs:
description: "The following release updates would be applied if staged mode was disabled:",
items: updateItems,
renderItem: (item, index) => {
- let content = `### Release Update ${index + 1}\n`;
+ let content = `#### Release Update ${index + 1}\n`;
content += `**Tag:** ${item.tag || "(inferred from event context)"}\n`;
content += `**Operation:** ${item.operation}\n\n`;
content += `**Body Content:**\n${item.body}\n\n`;
diff --git a/.github/workflows/security-compliance.lock.yml b/.github/workflows/security-compliance.lock.yml
index f5e0a608d5f..91c9b14d1fc 100644
--- a/.github/workflows/security-compliance.lock.yml
+++ b/.github/workflows/security-compliance.lock.yml
@@ -7725,7 +7725,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/semantic-function-refactor.lock.yml b/.github/workflows/semantic-function-refactor.lock.yml
index 38f3cf05c87..3e5b3bfa9fd 100644
--- a/.github/workflows/semantic-function-refactor.lock.yml
+++ b/.github/workflows/semantic-function-refactor.lock.yml
@@ -7843,7 +7843,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/smoke-claude.lock.yml b/.github/workflows/smoke-claude.lock.yml
index b96ab024333..1f479fcd45e 100644
--- a/.github/workflows/smoke-claude.lock.yml
+++ b/.github/workflows/smoke-claude.lock.yml
@@ -8603,7 +8603,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/smoke-codex.lock.yml b/.github/workflows/smoke-codex.lock.yml
index 1fb360f8047..e65f422c2fa 100644
--- a/.github/workflows/smoke-codex.lock.yml
+++ b/.github/workflows/smoke-codex.lock.yml
@@ -8500,7 +8500,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/smoke-copilot-playwright.lock.yml b/.github/workflows/smoke-copilot-playwright.lock.yml
index 5331960ef39..5de55a675e5 100644
--- a/.github/workflows/smoke-copilot-playwright.lock.yml
+++ b/.github/workflows/smoke-copilot-playwright.lock.yml
@@ -10038,7 +10038,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/smoke-copilot-safe-inputs.lock.yml b/.github/workflows/smoke-copilot-safe-inputs.lock.yml
index a82930ca844..5f9d0ea27e4 100644
--- a/.github/workflows/smoke-copilot-safe-inputs.lock.yml
+++ b/.github/workflows/smoke-copilot-safe-inputs.lock.yml
@@ -9813,7 +9813,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/smoke-copilot.lock.yml b/.github/workflows/smoke-copilot.lock.yml
index 2bf737a6694..a93a2aeb126 100644
--- a/.github/workflows/smoke-copilot.lock.yml
+++ b/.github/workflows/smoke-copilot.lock.yml
@@ -8660,7 +8660,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/smoke-detector.lock.yml b/.github/workflows/smoke-detector.lock.yml
index 6d572fcf632..bc4d724420a 100644
--- a/.github/workflows/smoke-detector.lock.yml
+++ b/.github/workflows/smoke-detector.lock.yml
@@ -8118,7 +8118,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/speckit-dispatcher.lock.yml b/.github/workflows/speckit-dispatcher.lock.yml
index 03863d67c09..60665f23270 100644
--- a/.github/workflows/speckit-dispatcher.lock.yml
+++ b/.github/workflows/speckit-dispatcher.lock.yml
@@ -8948,7 +8948,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/stale-repo-identifier.lock.yml b/.github/workflows/stale-repo-identifier.lock.yml
index 3727f47813d..ebc61411b72 100644
--- a/.github/workflows/stale-repo-identifier.lock.yml
+++ b/.github/workflows/stale-repo-identifier.lock.yml
@@ -8276,7 +8276,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/sub-issue-closer.lock.yml b/.github/workflows/sub-issue-closer.lock.yml
index f5190b691d3..69d3e0d7650 100644
--- a/.github/workflows/sub-issue-closer.lock.yml
+++ b/.github/workflows/sub-issue-closer.lock.yml
@@ -7407,7 +7407,7 @@ jobs:
};
EOF_95d23c7d
- cat > /tmp/gh-aw/scripts/update_runner.cjs << 'EOF_1b5d3c1d'
+ cat > /tmp/gh-aw/scripts/update_runner.cjs << 'EOF_006d32d7'
// @ts-check
///
@@ -7708,7 +7708,7 @@ jobs:
const { entityName, numberField, targetLabel, currentTargetText, includeOperation = false } = config;
return function renderStagedItem(item, index) {
- let content = `### ${entityName} Update ${index + 1}\n`;
+ let content = `#### ${entityName} Update ${index + 1}\n`;
if (item[numberField]) {
content += `**${targetLabel}** #${item[numberField]}\n\n`;
} else {
@@ -7760,7 +7760,7 @@ jobs:
createGetSummaryLine,
};
- EOF_1b5d3c1d
+ EOF_006d32d7
- name: Add Comment
id: add_comment
if: ((!cancelled()) && (needs.agent.result != 'skipped')) && (contains(needs.agent.outputs.output_types, 'add_comment'))
diff --git a/.github/workflows/super-linter.lock.yml b/.github/workflows/super-linter.lock.yml
index 2c843098f06..7d93564c145 100644
--- a/.github/workflows/super-linter.lock.yml
+++ b/.github/workflows/super-linter.lock.yml
@@ -7471,7 +7471,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/.github/workflows/video-analyzer.lock.yml b/.github/workflows/video-analyzer.lock.yml
index 5caa621e696..54c756ab817 100644
--- a/.github/workflows/video-analyzer.lock.yml
+++ b/.github/workflows/video-analyzer.lock.yml
@@ -7495,7 +7495,7 @@ jobs:
description: "The following issues would be created if staged mode was disabled:",
items: createIssueItems,
renderItem: (item, index) => {
- let content = `### Issue ${index + 1}\n`;
+ let content = `#### Issue ${index + 1}\n`;
content += `**Title:** ${item.title || "No title provided"}\n\n`;
if (item.temporary_id) {
content += `**Temporary ID:** ${item.temporary_id}\n\n`;
diff --git a/pkg/workflow/js/add_comment.test.cjs b/pkg/workflow/js/add_comment.test.cjs
index c432f9f6513..4c350de591f 100644
--- a/pkg/workflow/js/add_comment.test.cjs
+++ b/pkg/workflow/js/add_comment.test.cjs
@@ -225,11 +225,9 @@ const mockCore = {
delete global.context.payload.issue,
delete global.context.payload.pull_request);
const mockGraphqlResponse = vi.fn();
- (mockGraphqlResponse
- .mockResolvedValueOnce({ repository: { discussion: { id: "D_kwDOPc1QR84BpqRs", url: "https://github.com/testowner/testrepo/discussions/1993" } } })
- .mockResolvedValueOnce({
- addDiscussionComment: { comment: { id: "DC_kwDOPc1QR84BpqRt", body: "Test discussion comment", createdAt: "2025-10-19T22:00:00Z", url: "https://github.com/testowner/testrepo/discussions/1993#discussioncomment-123" } },
- }),
+ (mockGraphqlResponse.mockResolvedValueOnce({ repository: { discussion: { id: "D_kwDOPc1QR84BpqRs", url: "https://github.com/testowner/testrepo/discussions/1993" } } }).mockResolvedValueOnce({
+ addDiscussionComment: { comment: { id: "DC_kwDOPc1QR84BpqRt", body: "Test discussion comment", createdAt: "2025-10-19T22:00:00Z", url: "https://github.com/testowner/testrepo/discussions/1993#discussioncomment-123" } },
+ }),
(global.github.graphql = mockGraphqlResponse),
await eval(`(async () => { ${createCommentScript} })()`),
expect(mockGraphqlResponse).toHaveBeenCalledTimes(2),
@@ -257,11 +255,9 @@ const mockCore = {
delete global.context.payload.discussion,
delete global.context.payload.pull_request);
const mockGraphqlResponse = vi.fn();
- (mockGraphqlResponse
- .mockResolvedValueOnce({ repository: { discussion: { id: "D_kwDOPc1QR84BpqRu", url: "https://github.com/testowner/testrepo/discussions/2001" } } })
- .mockResolvedValueOnce({
- addDiscussionComment: { comment: { id: "DC_kwDOPc1QR84BpqRv", body: "Test explicit discussion comment", createdAt: "2025-10-22T12:00:00Z", url: "https://github.com/testowner/testrepo/discussions/2001#discussioncomment-456" } },
- }),
+ (mockGraphqlResponse.mockResolvedValueOnce({ repository: { discussion: { id: "D_kwDOPc1QR84BpqRu", url: "https://github.com/testowner/testrepo/discussions/2001" } } }).mockResolvedValueOnce({
+ addDiscussionComment: { comment: { id: "DC_kwDOPc1QR84BpqRv", body: "Test explicit discussion comment", createdAt: "2025-10-22T12:00:00Z", url: "https://github.com/testowner/testrepo/discussions/2001#discussioncomment-456" } },
+ }),
(global.github.graphql = mockGraphqlResponse),
await eval(`(async () => { ${createCommentScript} })()`),
expect(mockGraphqlResponse).toHaveBeenCalledTimes(2),