Skip to main content

fetch_remote_labels

Function fetch_remote_labels 

Source
pub fn fetch_remote_labels(slug: &str) -> Result<Vec<RemoteLabel>>
Expand description

Run gh label list --repo <slug> --json … and parse the result. Returns an empty vec when the remote has no labels (which is distinct from “gh not installed” — that surfaces as CommandFailed).