pub struct GitHubAt<'a, R: ProcessRunner = JobRunner> { /* private fields */ }Expand description
A GitHub client with a working directory bound, so its repo-scoped methods
drop the leading dir argument (gh.at(dir).pr_list()). Construct one with
GitHub::at.
Implementations§
Source§impl<'a, R: ProcessRunner> GitHubAt<'a, R>
impl<'a, R: ProcessRunner> GitHubAt<'a, R>
Sourcepub async fn run_raw(&self, args: &[String]) -> Result<ProcessResult<String>>
pub async fn run_raw(&self, args: &[String]) -> Result<ProcessResult<String>>
Bound form of GitHub’s run_raw.
Sourcepub async fn run_raw_args(&self, args: &[&str]) -> Result<ProcessResult<String>>
pub async fn run_raw_args(&self, args: &[&str]) -> Result<ProcessResult<String>>
Bound form of GitHub’s run_raw_args.
Sourcepub async fn auth_status(&self) -> Result<bool>
pub async fn auth_status(&self) -> Result<bool>
Bound form of GitHub’s auth_status.
Sourcepub async fn repo_view(&self) -> Result<Repo>
pub async fn repo_view(&self) -> Result<Repo>
Bound form of GitHub’s repo_view (with dir pre-bound).
Sourcepub async fn pr_list(&self) -> Result<Vec<PullRequest>>
pub async fn pr_list(&self) -> Result<Vec<PullRequest>>
Bound form of GitHub’s pr_list (with dir pre-bound).
Sourcepub async fn pr_list_for_branch(
&self,
head: &str,
base: &str,
) -> Result<Vec<PullRequest>>
pub async fn pr_list_for_branch( &self, head: &str, base: &str, ) -> Result<Vec<PullRequest>>
Bound form of GitHub’s pr_list_for_branch (with dir pre-bound).
Sourcepub async fn pr_view(&self, number: u64) -> Result<PullRequest>
pub async fn pr_view(&self, number: u64) -> Result<PullRequest>
Bound form of GitHub’s pr_view (with dir pre-bound).
Sourcepub async fn issue_list(&self) -> Result<Vec<Issue>>
pub async fn issue_list(&self) -> Result<Vec<Issue>>
Bound form of GitHub’s issue_list (with dir pre-bound).
Sourcepub async fn pr_create(&self, spec: PrCreate) -> Result<String>
pub async fn pr_create(&self, spec: PrCreate) -> Result<String>
Bound form of GitHub’s pr_create (with dir pre-bound).
Sourcepub async fn pr_merge(&self, number: u64, merge: PrMerge) -> Result<()>
pub async fn pr_merge(&self, number: u64, merge: PrMerge) -> Result<()>
Bound form of GitHub’s pr_merge (with dir pre-bound).
Sourcepub async fn pr_ready(&self, number: u64) -> Result<()>
pub async fn pr_ready(&self, number: u64) -> Result<()>
Bound form of GitHub’s pr_ready (with dir pre-bound).
Sourcepub async fn pr_close(&self, number: u64, delete_branch: bool) -> Result<()>
pub async fn pr_close(&self, number: u64, delete_branch: bool) -> Result<()>
Bound form of GitHub’s pr_close (with dir pre-bound).
Sourcepub async fn pr_checks(&self, number: u64) -> Result<Vec<CheckRun>>
pub async fn pr_checks(&self, number: u64) -> Result<Vec<CheckRun>>
Bound form of GitHub’s pr_checks (with dir pre-bound).
Sourcepub async fn pr_review(&self, number: u64, action: ReviewAction) -> Result<()>
pub async fn pr_review(&self, number: u64, action: ReviewAction) -> Result<()>
Bound form of GitHub’s pr_review (with dir pre-bound).
Sourcepub async fn pr_comment(&self, number: u64, body: &str) -> Result<String>
pub async fn pr_comment(&self, number: u64, body: &str) -> Result<String>
Bound form of GitHub’s pr_comment (with dir pre-bound).
Sourcepub async fn pr_feedback(&self, number: u64) -> Result<PrFeedback>
pub async fn pr_feedback(&self, number: u64) -> Result<PrFeedback>
Bound form of GitHub’s pr_feedback (with dir pre-bound).
Sourcepub async fn run_list(
&self,
limit: u64,
branch: Option<String>,
) -> Result<Vec<WorkflowRun>>
pub async fn run_list( &self, limit: u64, branch: Option<String>, ) -> Result<Vec<WorkflowRun>>
Bound form of GitHub’s run_list (with dir pre-bound).
Sourcepub async fn run_view(&self, id: u64) -> Result<WorkflowRun>
pub async fn run_view(&self, id: u64) -> Result<WorkflowRun>
Bound form of GitHub’s run_view (with dir pre-bound).
Sourcepub async fn run_watch(&self, id: u64) -> Result<WorkflowRun>
pub async fn run_watch(&self, id: u64) -> Result<WorkflowRun>
Bound form of GitHub’s run_watch (with dir pre-bound).
Sourcepub async fn issue_create(&self, title: &str, body: &str) -> Result<String>
pub async fn issue_create(&self, title: &str, body: &str) -> Result<String>
Bound form of GitHub’s issue_create (with dir pre-bound).
Sourcepub async fn issue_view(&self, number: u64) -> Result<Issue>
pub async fn issue_view(&self, number: u64) -> Result<Issue>
Bound form of GitHub’s issue_view (with dir pre-bound).