Bootstrap::GitHubCLI
Inherits Bootstrap::CLI < Reference < Object
GitHub-oriented CLI helpers built on Bootstrap::GitHubUtils.
Constants
DEFAULT_BASE = "master"
Class methods
Attempt to infer an owner/repo value from the working directory.
Checks the following sources in order:
GITHUB_REPOSITORY(Actions-compatible)BQ2_GITHUB_REPO.git/configremote "origin" URL (walking up from the current directory)
Returns owner/repo when url is a GitHub remote URL.
Dispatch GitHub CLI subcommands by command name.
run_pr_comment(args : Array(String), io : IO = STDOUT, http_post : Proc(String, HTTP::Headers, String, HTTP::Client::Response) | Nil = nil) : Int32
Post a PR thread comment (issue comment).
run_pr_create(args : Array(String), io : IO = STDOUT, http_post : Proc(String, HTTP::Headers, String, HTTP::Client::Response) | Nil = nil) : Int32
Create a pull request on GitHub.
run_pr_feedback(args : Array(String), io : IO = STDOUT, http_get : Proc(String, HTTP::Headers, HTTP::Client::Response) | Nil = nil) : Int32
Fetch PR feedback and print as JSON.