Skip to main content

parse_pr_list_number

Function parse_pr_list_number 

Source
pub fn parse_pr_list_number(s: &str) -> Result<Option<u64>>
Expand description

Parse the JSON array printed by gh pr list --json number --limit 1, returning the first PR number if any. Exposed for unit tests so the parse contract is covered without a gh shell-out.