Skip to main content

candidate_repos

Function candidate_repos 

Source
pub fn candidate_repos(workspace: &str) -> Vec<String>
Expand description

Every configured git remote’s GitHub repo slug (owner/repo) for workspace, origin first (the common case, tried with no extra requests) then any other remote in git remote order. Repos here routinely carry a personal origin alongside an internal mirror remote — PR detection must not assume a PR always lives against origin. Returns an empty Vec if workspace isn’t a git repo or has no remotes.