Skip to main content

pick_open_pr

Function pick_open_pr 

Source
fn pick_open_pr(raw: &str) -> Result<Option<(u64, String, bool)>, Error>
Expand description

Select the open PR from the commits/<sha>/pulls REST response. Multiple open PRs can contain the same commit (stacked PRs, cherry-picks); the most recently updated_at one wins - the actively-evolving PR is the right answer in stacked workflows - with the higher number breaking ties. One row renders, never a list.

updated_at compares lexicographically, which is chronological for GitHub’s uniform RFC3339 Z-suffixed format.