fix: enable automatic PR creation in consumer repo template#646
fix: enable automatic PR creation in consumer repo template#646
Conversation
Root cause: Consumer repos were using mode: 'invite' without force_mode, causing the reusable workflow to ignore the mode and prevent automatic bootstrap PR creation when issues are labeled with agent:codex. Changes: - Change mode from 'invite' to 'create' in bridge job template - Add force_mode: true to override issue event defaults This template change will sync to all consumer repos: - Travel-Plan-Permission - Trend_Model_Project - Manager-Database - trip-planner - Template - And others When synced, all consumer repos will support automatic PR creation when issues are labeled with agent:* labels, fixing startup_failure issues. Related: Trend_Model_Project#4185, PR #606
Automated Status SummaryHead SHA: 3c1f1f0
Coverage Overview
Coverage Trend
Top Coverage Hotspots (lowest coverage)
Updated automatically; will refresh on subsequent CI/Docker completions. Keepalive checklistScopeNo scope information available Tasks
Acceptance criteria
|
🤖 Keepalive Loop StatusPR #646 | Agent: Codex | Iteration 0/5 Current State
🔍 Failure Classification| Error type | infrastructure | |
There was a problem hiding this comment.
Pull request overview
This PR fixes automatic bootstrap PR creation in consumer repositories by updating the template workflow configuration. When issues are labeled with agent:codex or similar agent labels, consumer repos were experiencing startup_failure because the reusable workflow was overriding the mode to 'invite' for issue events. The fix adds force_mode: true and changes the mode to 'create' to bypass this default behavior.
Key Changes
- Changed
modefrom 'invite' to 'create' in the bridge job configuration - Added
force_mode: trueto override the reusable workflow's issue event defaults - This allows automatic PR creation instead of waiting for human intervention
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Problem
Consumer repos are experiencing startup_failure when issues are labeled with
agent:codexbecause the template is usingmode: 'invite'withoutforce_mode, causing the reusable workflow to prevent automatic bootstrap PR creation.Root Cause
The reusable-agents-issue-bridge.yml workflow has logic (line 257-268) that overrides the mode to 'invite' for issue events, unless
force_mode: trueis explicitly set. This was intended to wait for human intervention, but it breaks the desired automatic PR creation workflow.Changes
Template file:
templates/consumer-repo/.github/workflows/agents-issue-intake.ymlmodefrom 'invite' to 'create' in bridge jobforce_mode: trueto override issue event defaultsImpact
This change will be synced to all consumer repos including:
Expected Behavior After Sync
When issues are labeled with
agent:codexor similar labels:Related Issues
Testing
After sync, verify in any consumer repo:
agent:codex