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
Expand Up @@ -178,7 +178,7 @@ jobs:
agent: ${{ needs.check_labels.outputs.agent }}
issue_number: ${{ needs.check_labels.outputs.issue_number }}
mode: "create"
post_agent_comment: ${{ inputs.post_codex_comment && 'true' || 'false' }}
post_agent_comment: ${{ github.event_name == 'workflow_dispatch' && (inputs.post_codex_comment && 'true' || 'false') || 'true' }}
agent_pr_draft: ${{ inputs.bridge_draft_pr && 'true' || 'false' }}
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

For consistency with line 181, this should follow the same pattern of checking github.event_name before accessing inputs.bridge_draft_pr. During issue events, inputs is undefined, and while this currently evaluates to 'false' (matching the reusable workflow's default), the pattern should be:

agent_pr_draft: ${{ github.event_name == 'workflow_dispatch' && (inputs.bridge_draft_pr && 'true' || 'false') || 'false' }}

This makes the behavior explicit and consistent with how post_agent_comment is now handled.

Suggested change
agent_pr_draft: ${{ inputs.bridge_draft_pr && 'true' || 'false' }}
agent_pr_draft: ${{ github.event_name == 'workflow_dispatch' && (inputs.bridge_draft_pr && 'true' || 'false') || 'false' }}

Copilot uses AI. Check for mistakes.
secrets:
service_bot_pat: ${{ secrets.SERVICE_BOT_PAT }}
Expand Down
Loading