diff --git a/templates/consumer-repo/.github/workflows/agents-issue-intake.yml b/templates/consumer-repo/.github/workflows/agents-issue-intake.yml index f066ea4e9..83bd9ee7a 100644 --- a/templates/consumer-repo/.github/workflows/agents-issue-intake.yml +++ b/templates/consumer-repo/.github/workflows/agents-issue-intake.yml @@ -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 @@ -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(); } @@ -160,7 +164,7 @@ jobs: with: agent: ${{ needs.check_labels.outputs.agent }} issue_number: ${{ needs.check_labels.outputs.issue_number }} - mode: "invite" + mode: "create" post_agent_comment: ${{ inputs.post_codex_comment && 'true' || 'false' }} agent_pr_draft: ${{ inputs.bridge_draft_pr && 'true' || 'false' }} secrets: