pub struct GitHubCli { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl GitHub for GitHubCli
impl GitHub for GitHubCli
Source§fn run_summary(
&self,
repo: Option<&str>,
run_id: &str,
) -> Result<String, Box<dyn Error>>
fn run_summary( &self, repo: Option<&str>, run_id: &str, ) -> Result<String, Box<dyn Error>>
Get the summary of a run in a GitHub repository, if
repo
is None
the default repository is used
Returns the summary as a StringSource§fn failed_job_log(
&self,
repo: Option<&str>,
job_id: &str,
) -> Result<String, Box<dyn Error>>
fn failed_job_log( &self, repo: Option<&str>, job_id: &str, ) -> Result<String, Box<dyn Error>>
Get the log of a failed job in a GitHub repository, if
repo
is None
the default repository is used
Returns the log as a StringSource§fn create_issue(
&self,
repo: Option<&str>,
title: &str,
body: &str,
labels: &[String],
) -> Result<(), Box<dyn Error>>
fn create_issue( &self, repo: Option<&str>, title: &str, body: &str, labels: &[String], ) -> Result<(), Box<dyn Error>>
Create an issue in a GitHub repository, if
repo
is None
the default repository is usedSource§fn issue_bodies_open_with_label(
&self,
repo: Option<&str>,
label: &str,
) -> Result<Vec<String>, Box<dyn Error>>
fn issue_bodies_open_with_label( &self, repo: Option<&str>, label: &str, ) -> Result<Vec<String>, Box<dyn Error>>
Get the bodies of open issues with a specific label in a GitHub repository, if
repo
is None
the default repository is used
Returns Vec<String>
of issue bodiesSource§fn all_labels(&self, repo: Option<&str>) -> Result<Vec<String>, Box<dyn Error>>
fn all_labels(&self, repo: Option<&str>) -> Result<Vec<String>, Box<dyn Error>>
Get all labels in a GitHub repository, if
repo
is None
the default repository is used
Returns Vec<String>
of GitHub labelsSource§fn create_label(
&self,
repo: Option<&str>,
name: &str,
color: &str,
description: &str,
force: bool,
) -> Result<(), Box<dyn Error>>
fn create_label( &self, repo: Option<&str>, name: &str, color: &str, description: &str, force: bool, ) -> Result<(), Box<dyn Error>>
Create a label in a GitHub repository, if
repo
is None
the default repository is used
The color should be a 6 character hex code (e.g. “FF0000”)
if force
is true and the label already exists, it will be overwrittenSource§fn default_repo(&self) -> &str
fn default_repo(&self) -> &str
Get the default repository for the GitHub CLI
Auto Trait Implementations§
impl Freeze for GitHubCli
impl RefUnwindSafe for GitHubCli
impl Send for GitHubCli
impl Sync for GitHubCli
impl Unpin for GitHubCli
impl UnwindSafe for GitHubCli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more