pub struct GitHub { /* private fields */ }Implementations§
Source§impl GitHub
impl GitHub
pub async fn create_issue_from_run( &self, repo: &String, run_id: &String, label: &String, kind: &WorkflowKind, no_duplicate: bool, title: &String, ) -> Result<()>
pub async fn open_issues(&self, owner: &str, repo: &str) -> Result<Vec<Issue>>
pub async fn issues_at<I, S>( &self, owner: &str, repo: &str, date: DateFilter, state: State, labels: LabelFilter<I, S>, ) -> Result<Vec<Issue>>
Sourcepub async fn create_issue(
&self,
owner: &str,
repo: &str,
issue: Issue,
) -> Result<()>
pub async fn create_issue( &self, owner: &str, repo: &str, issue: Issue, ) -> Result<()>
Create an issue
pub async fn get_all_labels( &self, owner: &str, repo: &str, ) -> Result<Vec<Label>>
pub async fn workflow_run( &self, owner: &str, repo: &str, run_id: RunId, ) -> Result<Run>
pub async fn workflow_run_jobs( &self, owner: &str, repo: &str, run_id: RunId, ) -> Result<Vec<Job>>
Sourcepub async fn download_job_logs(
&self,
owner: &str,
repo: &str,
job_id: u64,
) -> Result<String>
pub async fn download_job_logs( &self, owner: &str, repo: &str, job_id: u64, ) -> Result<String>
Get the entire raw log for a job
§Note
The log does not contain the name of the workflow steps, only the output of the steps. It is
therefore not feasible to parse the log to find the step that failed.
Instead use download_workflow_run_logs to get the logs for the entire workflow run.
Auto Trait Implementations§
impl !Freeze for GitHub
impl !RefUnwindSafe for GitHub
impl Send for GitHub
impl Sync for GitHub
impl Unpin for GitHub
impl !UnwindSafe for GitHub
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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