From dba30b59e35b3217d7f884d37b603be0d86b8288 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 16:11:54 +0000 Subject: [PATCH 1/2] Initial plan From 79b9c26888903cfa51059ce6c8aaf66021fb1f11 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Jan 2026 16:21:20 +0000 Subject: [PATCH 2/2] Fix comment replacement issue by adding append-only-comments flag - Added `append-only-comments: true` to messages configuration in agentic-campaign-generator.md - Recompiled workflow to update lock file with new configuration - This ensures the "run-started" comment is preserved and a new "run-success" comment is created - Previously, the "run-success" message replaced the "run-started" message content Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/agentic-campaign-generator.lock.yml | 8 ++++---- .github/workflows/agentic-campaign-generator.md | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/agentic-campaign-generator.lock.yml b/.github/workflows/agentic-campaign-generator.lock.yml index 6973b9edd63..f728ee09c86 100644 --- a/.github/workflows/agentic-campaign-generator.lock.yml +++ b/.github/workflows/agentic-campaign-generator.lock.yml @@ -83,7 +83,7 @@ jobs: env: GH_AW_WORKFLOW_NAME: "Agentic Campaign Generator" GH_AW_LOCK_FOR_AGENT: "true" - GH_AW_SAFE_OUTPUT_MESSAGES: "{\"runStarted\":\"### :rocket: Campaign setup started\\nCreating a tracking Project and generating campaign files + orchestrator workflow.\\nNo action needed — the [{workflow_name}]({run_url}) will open a pull request and post the link + checklist back on this issue when ready.\\n\\u003e To stop this run: remove the label that started it.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runSuccess\":\"### :white_check_mark: Campaign setup complete\\nTracking Project created and pull request with generated campaign files is ready.\\n**Next steps**: Review + merge the PR, then run the campaign from the Actions tab.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runFailure\":\"### :x: Campaign setup {status}\\n**Common causes**:\\n- `GH_AW_PROJECT_GITHUB_TOKEN` is missing or invalid\\n- Token lacks access to GitHub Projects\\n**Action required**:\\n- Fix the first error in the logs\\n- Re-apply the label to re-run\\n\\u003e **Troubleshooting**: https://githubnext.github.io/gh-aw/guides/campaigns/flow/#when-something-goes-wrong\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\"}" + GH_AW_SAFE_OUTPUT_MESSAGES: "{\"appendOnlyComments\":true,\"runStarted\":\"### :rocket: Campaign setup started\\nCreating a tracking Project and generating campaign files + orchestrator workflow.\\nNo action needed — the [{workflow_name}]({run_url}) will open a pull request and post the link + checklist back on this issue when ready.\\n\\u003e To stop this run: remove the label that started it.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runSuccess\":\"### :white_check_mark: Campaign setup complete\\nTracking Project created and pull request with generated campaign files is ready.\\n**Next steps**: Review + merge the PR, then run the campaign from the Actions tab.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runFailure\":\"### :x: Campaign setup {status}\\n**Common causes**:\\n- `GH_AW_PROJECT_GITHUB_TOKEN` is missing or invalid\\n- Token lacks access to GitHub Projects\\n**Action required**:\\n- Fix the first error in the logs\\n- Re-apply the label to re-run\\n\\u003e **Troubleshooting**: https://githubnext.github.io/gh-aw/guides/campaigns/flow/#when-something-goes-wrong\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\"}" with: script: | const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs'); @@ -1202,7 +1202,7 @@ jobs: GH_AW_SECRET_VERIFICATION_RESULT: ${{ needs.agent.outputs.secret_verification_result }} GH_AW_ASSIGNMENT_ERRORS: ${{ needs.safe_outputs.outputs.assign_to_agent_assignment_errors }} GH_AW_ASSIGNMENT_ERROR_COUNT: ${{ needs.safe_outputs.outputs.assign_to_agent_assignment_error_count }} - GH_AW_SAFE_OUTPUT_MESSAGES: "{\"runStarted\":\"### :rocket: Campaign setup started\\nCreating a tracking Project and generating campaign files + orchestrator workflow.\\nNo action needed — the [{workflow_name}]({run_url}) will open a pull request and post the link + checklist back on this issue when ready.\\n\\u003e To stop this run: remove the label that started it.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runSuccess\":\"### :white_check_mark: Campaign setup complete\\nTracking Project created and pull request with generated campaign files is ready.\\n**Next steps**: Review + merge the PR, then run the campaign from the Actions tab.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runFailure\":\"### :x: Campaign setup {status}\\n**Common causes**:\\n- `GH_AW_PROJECT_GITHUB_TOKEN` is missing or invalid\\n- Token lacks access to GitHub Projects\\n**Action required**:\\n- Fix the first error in the logs\\n- Re-apply the label to re-run\\n\\u003e **Troubleshooting**: https://githubnext.github.io/gh-aw/guides/campaigns/flow/#when-something-goes-wrong\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\"}" + GH_AW_SAFE_OUTPUT_MESSAGES: "{\"appendOnlyComments\":true,\"runStarted\":\"### :rocket: Campaign setup started\\nCreating a tracking Project and generating campaign files + orchestrator workflow.\\nNo action needed — the [{workflow_name}]({run_url}) will open a pull request and post the link + checklist back on this issue when ready.\\n\\u003e To stop this run: remove the label that started it.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runSuccess\":\"### :white_check_mark: Campaign setup complete\\nTracking Project created and pull request with generated campaign files is ready.\\n**Next steps**: Review + merge the PR, then run the campaign from the Actions tab.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runFailure\":\"### :x: Campaign setup {status}\\n**Common causes**:\\n- `GH_AW_PROJECT_GITHUB_TOKEN` is missing or invalid\\n- Token lacks access to GitHub Projects\\n**Action required**:\\n- Fix the first error in the logs\\n- Re-apply the label to re-run\\n\\u003e **Troubleshooting**: https://githubnext.github.io/gh-aw/guides/campaigns/flow/#when-something-goes-wrong\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\"}" with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | @@ -1221,7 +1221,7 @@ jobs: GH_AW_WORKFLOW_NAME: "Agentic Campaign Generator" GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }} GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.result }} - GH_AW_SAFE_OUTPUT_MESSAGES: "{\"runStarted\":\"### :rocket: Campaign setup started\\nCreating a tracking Project and generating campaign files + orchestrator workflow.\\nNo action needed — the [{workflow_name}]({run_url}) will open a pull request and post the link + checklist back on this issue when ready.\\n\\u003e To stop this run: remove the label that started it.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runSuccess\":\"### :white_check_mark: Campaign setup complete\\nTracking Project created and pull request with generated campaign files is ready.\\n**Next steps**: Review + merge the PR, then run the campaign from the Actions tab.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runFailure\":\"### :x: Campaign setup {status}\\n**Common causes**:\\n- `GH_AW_PROJECT_GITHUB_TOKEN` is missing or invalid\\n- Token lacks access to GitHub Projects\\n**Action required**:\\n- Fix the first error in the logs\\n- Re-apply the label to re-run\\n\\u003e **Troubleshooting**: https://githubnext.github.io/gh-aw/guides/campaigns/flow/#when-something-goes-wrong\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\"}" + GH_AW_SAFE_OUTPUT_MESSAGES: "{\"appendOnlyComments\":true,\"runStarted\":\"### :rocket: Campaign setup started\\nCreating a tracking Project and generating campaign files + orchestrator workflow.\\nNo action needed — the [{workflow_name}]({run_url}) will open a pull request and post the link + checklist back on this issue when ready.\\n\\u003e To stop this run: remove the label that started it.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runSuccess\":\"### :white_check_mark: Campaign setup complete\\nTracking Project created and pull request with generated campaign files is ready.\\n**Next steps**: Review + merge the PR, then run the campaign from the Actions tab.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runFailure\":\"### :x: Campaign setup {status}\\n**Common causes**:\\n- `GH_AW_PROJECT_GITHUB_TOKEN` is missing or invalid\\n- Token lacks access to GitHub Projects\\n**Action required**:\\n- Fix the first error in the logs\\n- Re-apply the label to re-run\\n\\u003e **Troubleshooting**: https://githubnext.github.io/gh-aw/guides/campaigns/flow/#when-something-goes-wrong\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\"}" with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | @@ -1463,7 +1463,7 @@ jobs: timeout-minutes: 15 env: GH_AW_ENGINE_ID: "claude" - GH_AW_SAFE_OUTPUT_MESSAGES: "{\"runStarted\":\"### :rocket: Campaign setup started\\nCreating a tracking Project and generating campaign files + orchestrator workflow.\\nNo action needed — the [{workflow_name}]({run_url}) will open a pull request and post the link + checklist back on this issue when ready.\\n\\u003e To stop this run: remove the label that started it.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runSuccess\":\"### :white_check_mark: Campaign setup complete\\nTracking Project created and pull request with generated campaign files is ready.\\n**Next steps**: Review + merge the PR, then run the campaign from the Actions tab.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runFailure\":\"### :x: Campaign setup {status}\\n**Common causes**:\\n- `GH_AW_PROJECT_GITHUB_TOKEN` is missing or invalid\\n- Token lacks access to GitHub Projects\\n**Action required**:\\n- Fix the first error in the logs\\n- Re-apply the label to re-run\\n\\u003e **Troubleshooting**: https://githubnext.github.io/gh-aw/guides/campaigns/flow/#when-something-goes-wrong\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\"}" + GH_AW_SAFE_OUTPUT_MESSAGES: "{\"appendOnlyComments\":true,\"runStarted\":\"### :rocket: Campaign setup started\\nCreating a tracking Project and generating campaign files + orchestrator workflow.\\nNo action needed — the [{workflow_name}]({run_url}) will open a pull request and post the link + checklist back on this issue when ready.\\n\\u003e To stop this run: remove the label that started it.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runSuccess\":\"### :white_check_mark: Campaign setup complete\\nTracking Project created and pull request with generated campaign files is ready.\\n**Next steps**: Review + merge the PR, then run the campaign from the Actions tab.\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\",\"runFailure\":\"### :x: Campaign setup {status}\\n**Common causes**:\\n- `GH_AW_PROJECT_GITHUB_TOKEN` is missing or invalid\\n- Token lacks access to GitHub Projects\\n**Action required**:\\n- Fix the first error in the logs\\n- Re-apply the label to re-run\\n\\u003e **Troubleshooting**: https://githubnext.github.io/gh-aw/guides/campaigns/flow/#when-something-goes-wrong\\n\\u003e **Docs**: https://githubnext.github.io/gh-aw/guides/campaigns/getting-started/\"}" GH_AW_WORKFLOW_ID: "agentic-campaign-generator" GH_AW_WORKFLOW_NAME: "Agentic Campaign Generator" outputs: diff --git a/.github/workflows/agentic-campaign-generator.md b/.github/workflows/agentic-campaign-generator.md index 94f9352ccea..6df3ecf0b9b 100644 --- a/.github/workflows/agentic-campaign-generator.md +++ b/.github/workflows/agentic-campaign-generator.md @@ -58,6 +58,7 @@ safe-outputs: max: 10 github-token: "${{ secrets.GH_AW_PROJECT_GITHUB_TOKEN }}" messages: + append-only-comments: true run-started: "### :rocket: Campaign setup started Creating a tracking Project and generating campaign files + orchestrator workflow.