pub struct ActionsIntegration {
pub token: String,
pub owner: String,
pub repo: String,
}Expand description
GitHub Actions Integration manager
Fields§
§token: StringGitHub token
owner: StringRepository owner
repo: StringRepository name
Implementations§
Source§impl ActionsIntegration
impl ActionsIntegration
Sourcepub fn new(token: String, owner: String, repo: String) -> Self
pub fn new(token: String, owner: String, repo: String) -> Self
Create a new ActionsIntegration manager
Sourcepub async fn trigger_workflow(
&self,
request: WorkflowTriggerRequest,
) -> Result<WorkflowTriggerResult>
pub async fn trigger_workflow( &self, request: WorkflowTriggerRequest, ) -> Result<WorkflowTriggerResult>
Sourcepub async fn track_workflow_status(
&self,
run_id: u64,
) -> Result<WorkflowStatusResult>
pub async fn track_workflow_status( &self, run_id: u64, ) -> Result<WorkflowStatusResult>
Sourcepub async fn diagnose_ci_failure(
&self,
run_id: u64,
) -> Result<CiFailureDiagnostics>
pub async fn diagnose_ci_failure( &self, run_id: u64, ) -> Result<CiFailureDiagnostics>
Sourcepub async fn retry_workflow(&self, run_id: u64) -> Result<WorkflowRetryResult>
pub async fn retry_workflow(&self, run_id: u64) -> Result<WorkflowRetryResult>
Sourcepub async fn summarize_ci_results(&self, run_id: u64) -> Result<CiResultSummary>
pub async fn summarize_ci_results(&self, run_id: u64) -> Result<CiResultSummary>
Auto Trait Implementations§
impl Freeze for ActionsIntegration
impl RefUnwindSafe for ActionsIntegration
impl Send for ActionsIntegration
impl Sync for ActionsIntegration
impl Unpin for ActionsIntegration
impl UnwindSafe for ActionsIntegration
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