Struct gh_workflow_parser::gh::gh_cli_fake::GitHubCliFake
source · pub struct GitHubCliFake { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for GitHubCliFake
impl Clone for GitHubCliFake
source§fn clone(&self) -> GitHubCliFake
fn clone(&self) -> GitHubCliFake
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GitHubCliFake
impl Debug for GitHubCliFake
source§impl Default for GitHubCliFake
impl Default for GitHubCliFake
source§fn default() -> GitHubCliFake
fn default() -> GitHubCliFake
Returns the “default value” for a type. Read more
source§impl GitHub for GitHubCliFake
impl GitHub for GitHubCliFake
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 RefUnwindSafe for GitHubCliFake
impl Send for GitHubCliFake
impl Sync for GitHubCliFake
impl Unpin for GitHubCliFake
impl UnwindSafe for GitHubCliFake
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