Expand description
GitHub issue fetching for ai jev route (#1779).
Mirrors crate::pr_status’s shape: shell out to gh (ADR-0003 — the
GitHub token never enters our process), build one aliased gh api graphql query per batch of issues grouped by repository (free aliasing —
repository(owner:,name:) and issue(number:) take no first:/last:,
so neither is a connection and neither contributes to the query’s point
cost — see pr_status’s module docs for the measured numbers), and reuse
crate::pr_status::run_gh_graphql rather than writing a second
subprocess wrapper.
Every call funnels through crate::github_metrics::run_gh (or
run_gh_graphql, which already does), so it is counted and logged like
every other gh invocation (#1387).
Functions§
- fetch_
issues - Fetches every ref, returning issues in the same order as
refs. - fetch_
items - Fetches a set of references that may be issues or pull requests.
- list_
open_ issue_ numbers - Lists every open issue number in
project, for--all-open. - needs_
default_ project - Whether
rawnames an issue only by number (#NorN), so it needs the current repository to resolve. Lets callers skip thegh repo viewround-trip when every argument is already qualified. - parse_
issue_ arg - Parses one
<ISSUE>CLI argument into anItemRef. - resolve_
current_ project - Resolves the
owner/repoof the GitHub repository checked out atcwd, viagh repo view.