pub struct WorkflowApiClient { /* private fields */ }Expand description
GitHub Actions workflow API client
Implementations§
Source§impl WorkflowApiClient
impl WorkflowApiClient
Sourcepub async fn list_workflow_runs(
&self,
owner: &str,
repo: &str,
branch: &str,
status: Option<&str>,
per_page: u32,
page: u32,
interner: &StringInterner,
) -> Result<Vec<WorkflowRun>>
pub async fn list_workflow_runs( &self, owner: &str, repo: &str, branch: &str, status: Option<&str>, per_page: u32, page: u32, interner: &StringInterner, ) -> Result<Vec<WorkflowRun>>
List workflow runs for a branch with filtering
Endpoint: GET /repos/{owner}/{repo}/actions/runs Query params: branch, status, per_page, page
Sourcepub async fn get_commit_files(
&self,
owner: &str,
repo: &str,
sha: &str,
interner: &StringInterner,
) -> Result<Vec<InternedString>>
pub async fn get_commit_files( &self, owner: &str, repo: &str, sha: &str, interner: &StringInterner, ) -> Result<Vec<InternedString>>
Get files changed in a specific commit
Endpoint: GET /repos/{owner}/{repo}/commits/{sha} Handles pagination for commits with >300 files
Sourcepub async fn get_workflow_run(
&self,
owner: &str,
repo: &str,
run_id: u64,
interner: &StringInterner,
) -> Result<WorkflowRun>
pub async fn get_workflow_run( &self, owner: &str, repo: &str, run_id: u64, interner: &StringInterner, ) -> Result<WorkflowRun>
Get a specific workflow run
Endpoint: GET /repos/{owner}/{repo}/actions/runs/{run_id}
Sourcepub async fn wait_for_workflow(
&self,
owner: &str,
repo: &str,
run_id: u64,
max_wait_seconds: u32,
interner: &StringInterner,
) -> Result<WorkflowRun>
pub async fn wait_for_workflow( &self, owner: &str, repo: &str, run_id: u64, max_wait_seconds: u32, interner: &StringInterner, ) -> Result<WorkflowRun>
Wait for a specific workflow to complete with exponential backoff
Returns when workflow completes or timeout is reached
Sourcepub async fn list_workflow_jobs(
&self,
owner: &str,
repo: &str,
run_id: u64,
interner: &StringInterner,
) -> Result<Vec<WorkflowJob>>
pub async fn list_workflow_jobs( &self, owner: &str, repo: &str, run_id: u64, interner: &StringInterner, ) -> Result<Vec<WorkflowJob>>
List jobs for a workflow run
Endpoint: GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WorkflowApiClient
impl !UnwindSafe for WorkflowApiClient
impl Freeze for WorkflowApiClient
impl Send for WorkflowApiClient
impl Sync for WorkflowApiClient
impl Unpin for WorkflowApiClient
impl UnsafeUnpin for WorkflowApiClient
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