Skip to main content

find_pr_argv

Function find_pr_argv 

Source
pub fn find_pr_argv(slug: &str, branch: &str) -> Vec<String>
Expand description

Argv for gh pr list --repo <slug> --head <branch> --state all --json number --limit 1. Extracted so the test suite can pin the gh contract without shelling out; find_pr_for_branch is the caller that actually invokes it. --state all is the load-bearing bit: a closed or merged PR for the branch is still detected (its PrState is resolved later via fetch_pr).