Skip to content

Fix create_project_status_update handler not loaded in campaign workflows#9169

Merged
mnkiefer merged 4 commits intomainfrom
copilot/fix-project-status-update-bug
Jan 6, 2026
Merged

Fix create_project_status_update handler not loaded in campaign workflows#9169
mnkiefer merged 4 commits intomainfrom
copilot/fix-project-status-update-bug

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 6, 2026

Campaign workflows configured with create-project-status-update were silently failing with "No handler loaded for message type" warnings, causing incorrect fallback to copy_project handler.

Root Cause

The handler was registered in JavaScript HANDLER_MAP but missing from the Go compiler's GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG generation logic.

Changes

  • pkg/workflow/compiler_safe_outputs_config.go: Added CreateProjectStatusUpdates config block to addHandlerManagerConfigEnvVar() following the pattern of existing handlers (dispatch_workflow, hide_comment, etc.)

  • .github/workflows/docs-quality-maintenance-project67.campaign.lock.yml: Recompiled with fix

  • pkg/workflow/create_project_status_update_handler_config_test.go: Regression tests for handler config generation

Example

Before:

{"add_comment":{"max":10},"create_issue":{"max":1}}

After:

{
  "add_comment":{"max":10},
  "create_issue":{"max":1},
  "create_project_status_update":{
    "github-token":"${{ secrets.GH_AW_PROJECT_GITHUB_TOKEN }}",
    "max":1
  }
}
Original prompt

Analyze campaign run: https://github.com/githubnext/gh-aw/actions/runs/20760878754
Should run create-project-status-update, but runs safe output copy-project instead? This is a bug.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Fixed missing handler registration in compiler_safe_outputs_config.go
- The handler was in HANDLER_MAP but not in GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG
- Recompiled campaign workflow to include the handler configuration

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
@mnkiefer mnkiefer marked this pull request as ready for review January 6, 2026 20:50
mnkiefer and others added 2 commits January 6, 2026 21:50
- Added comprehensive tests to ensure handler is properly configured
- Tests verify max field, github-token field, and handler manager integration
- All tests passing

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix bug in campaign run status update Fix create_project_status_update handler not loaded in campaign workflows Jan 6, 2026
Copilot AI requested a review from mnkiefer January 6, 2026 20:59
@mnkiefer mnkiefer merged commit fe6ad22 into main Jan 6, 2026
89 checks passed
@mnkiefer mnkiefer deleted the copilot/fix-project-status-update-bug branch January 6, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants