Skip to main content

draft_trigger_ticket

Function draft_trigger_ticket 

Source
pub fn draft_trigger_ticket(
    repo_root: &Path,
    trigger: &Trigger,
) -> Result<TriggerDraft>
Expand description

Write the trigger’s ticket, deduped by slug: an existing ticket file for the same workflow run / PR is a no-op (TriggerDraft::Duplicate). Performs no git operations; the ticket enters the normal pipeline at state New, exactly like a human-authored one.