Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Thin caller for issue intake - delegates to Workflows repo reusable workflow
#
# Two modes:
# 1. Label-based (agent_bridge): Assigns agents to issues when labeled with agent:* labels
# 2. ChatGPT sync (chatgpt_sync): Bulk creates issues from topic files with optional LangChain formatting
# 1. Label-based (agent_bridge): Assigns agents to issues when labeled
# with agent:* labels
# 2. ChatGPT sync (chatgpt_sync): Bulk creates issues from topic files
# with optional LangChain formatting
#
# Triggers:
# - Issue opened/reopened/labeled with agent:* labels
Expand Down Expand Up @@ -132,7 +134,9 @@ jobs:

// Extract agent from labels (agent:codex, agents:codex, etc.)
const labels = issue.labels.map(l => l.name);
const agentLabel = labels.find(l => /^agents?:[a-z]+$/i.test(l) && !l.includes('keepalive'));
const agentLabel = labels.find(
l => /^agents?:[a-z]+$/i.test(l) && !l.includes('keepalive')
);
if (agentLabel) {
agent = agentLabel.replace(/^agents?:/, '').toLowerCase();
}
Expand Down Expand Up @@ -160,7 +164,7 @@ jobs:
with:
agent: ${{ needs.check_labels.outputs.agent }}
issue_number: ${{ needs.check_labels.outputs.issue_number }}
mode: "invite"
mode: "create"
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the mode from "invite" to "create" will only affect manual workflow_dispatch runs. For issue-triggered events (opened, reopened, labeled), the reusable workflow's "Select PR mode" step forces the mode back to "invite" regardless of the input value (see lines 257-269 in reusable-agents-issue-bridge.yml). If this fix is intended to apply to issue-triggered events, the override logic in the reusable workflow needs to be adjusted as well.

Suggested change
mode: "create"
mode: "invite"

Copilot uses AI. Check for mistakes.
post_agent_comment: ${{ inputs.post_codex_comment && 'true' || 'false' }}
agent_pr_draft: ${{ inputs.bridge_draft_pr && 'true' || 'false' }}
secrets:
Expand Down
Loading