Expand description
GitHub Action / remote PR workflow helpers.
These functions thinly wrap the gh CLI so that workflow steps can call
sparrow github review|status|logs from inside an Action. They never
invent results: a missing gh binary or missing GITHUB_TOKEN returns a
clear error.
Structs§
Functions§
- ci_logs
- Returns
gh run view <id> --logas raw text. Used bysparrow github logs. - ci_
status - Returns
gh run list --limit 5as raw text. Used bysparrow github status. - fetch_
pr_ diff - Fetch the diff for
prviagh pr diff <pr>. Returns the stdout text on success, otherwise an error that includes stderr — never a silent empty string. - gh_
available - plan_
review - Builds a
ReviewPlanfrom inputs. Withdry_run = truethis never shells out and is safe in tests. - require_
action_ env - Returns Err with a clear message when the environment is not set up for GitHub Action use. Used by every subcommand so the action fails loudly when secrets are missing instead of silently no-oping.