Skip to main content

get

Function get 

Source
pub fn get(
    repo: &str,
    search: Option<&str>,
    retain_fn: &dyn Fn(&PullRequest) -> bool,
) -> Result<Vec<PullRequest>>
Expand description

Fetch pull requests for a repository using gh pr list.

§Errors

  • Spawning or executing gh pr list fails.
  • Command exits non‑zero (handled inside ytil_cmd::CmdExt).
  • Output JSON cannot be deserialized.