Skip to main content

linked_workflow_path

Function linked_workflow_path 

Source
pub fn linked_workflow_path(raw: &str) -> String
Expand description

Drop @ref and an owner/repo/ prefix so a run path matches a CSV workflow path.

@main and @refs/heads/feature/x both leave the workflow file. The prefix is removed only when exactly two segments sit in front of .github/workflows. Matching later is ASCII case-insensitive; this function keeps the workflow path’s own case.