Skip to main content

best_pull_request

Function best_pull_request 

Source
pub fn best_pull_request(
    all: Vec<PullRequestSummary>,
) -> Option<PullRequestSummary>
Expand description

Picks the request that best answers “which PR is this branch’s?”: open, then draft, then merged, then closed; newest updated_at breaks a tie (ISO-8601 strings sort chronologically).