Skip to main content

Module github_issues

Module github_issues 

Source
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 raw names an issue only by number (#N or N), so it needs the current repository to resolve. Lets callers skip the gh repo view round-trip when every argument is already qualified.
parse_issue_arg
Parses one <ISSUE> CLI argument into an ItemRef.
resolve_current_project
Resolves the owner/repo of the GitHub repository checked out at cwd, via gh repo view.