Scope campaign validation to specific files when compiling by name#9022
Merged
Scope campaign validation to specific files when compiling by name#9022
Conversation
Co-authored-by: pelikhan <[email protected]>
Copilot
AI
changed the title
[WIP] Fix incorrect campaign validation in compile command
Skip campaign validation when compiling specific non-campaign workflows
Jan 5, 2026
pelikhan
reviewed
Jan 5, 2026
| ) | ||
|
|
||
| // initGitRepo initializes a git repository in the given directory | ||
| func initGitRepoForCampaignTest(t *testing.T, dir string) { |
Co-authored-by: pelikhan <[email protected]>
Contributor
|
@copilot when compiling a campaign by name, only validate that campaign file not all. $ ./gh-aw compile my-workflow.campaign.md |
Co-authored-by: pelikhan <[email protected]>
Contributor
Author
Fixed in 59406f1. Now validates only the specific campaign file being compiled: Before: All 7 campaigns validated After: Only the 1 campaign being compiled is validated |
Copilot
AI
changed the title
Skip campaign validation when compiling specific non-campaign workflows
Scope campaign validation to specific files when compiling by name
Jan 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fix: Scope Campaign Validation to Specific Files When Compiling
Summary
Fixed an issue where campaign validation was running on all campaigns regardless of which workflows were being compiled. The validation is now properly scoped:
Changes Made
compileSpecificFilesto track which specific campaign files are being compiled (list of paths instead of boolean)runPostProcessingto accept list of campaign filesvalidateCampaignsto filter validation to specific campaign files when providedVerification
✅ Non-campaign workflows skip campaign validation:
✅ Specific campaign files validate only that campaign:
✅ All workflows still validates all campaigns:
$ ./gh-aw compile ⚠ Campaign validation: found 7 problem(s) in campaign specs ⚠ Compiled 127 workflow(s)Files Modified
pkg/cli/compile_orchestration.go- Track campaign files list and pass to post-processingpkg/cli/compile_post_processing.go- Accept campaign files list parameterpkg/cli/compile_campaign.go- Filter validation to specific campaign files when providedOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.