Enable copy-project safe output by default for campaign orchestrators #9121
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.
✅ Complete: Enable copy-project Safe Output for Campaign Orchestrators
Campaigns now use safe outputs by default for both:
copy-projectfrom githubnext "[TEMPLATE: Agentic Campaign]" (https://github.com/orgs/githubnext/projects/74)create-project-status-update(already enabled)Changes Made
1. Campaign Orchestrator Configuration (
pkg/campaign/orchestrator.go)Added
CopyProjectstoSafeOutputsConfiginBuildOrchestrator:constants.DefaultCampaignTemplateProjectURL2. Constants (
pkg/constants/constants.go)Added
DefaultCampaignTemplateProjectURLconstant:URLhttps://github.com/orgs/githubnext/projects/743. Safe Outputs Config Generation (
pkg/workflow/safe_outputs_config_generation.go)4. Campaign Orchestrator Rendering (
pkg/cli/compile_orchestrator.go)Added copy-project rendering in
renderGeneratedCampaignOrchestratorMarkdown:5. Tests (
pkg/campaign/orchestrator_test.go)Added
TestBuildOrchestrator_CopyProjectSafeOutput:Verification
Compiled
.github/workflows/file-size-reduction-project71.campaign.lock.ymldemonstrates complete implementation:Config generated:
{"copy_project":{"max":1},...}Step generated:
Frontmatter generated:
Test Results
✅ All campaign tests pass (37/37)
✅ All copy-project tests pass (4/4)
✅ Compiled campaign includes all expected configuration
Note: Some unrelated test failures exist in
pkg/workflowtrial mode tests, but these are pre-existing and unrelated to the copy-project changes.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.