pub fn list_runs(&self, workflow_file_or_id: impl Into<String>) -> ListRunsBuilder<'_, '_> {
        ListRunsBuilder::new(
            self,
            ListRunsRequestType::ByWorkflow(workflow_file_or_id.into()),
        )
    }
/// List runs in the specified workflow.
/// workflow_file_or_id can be either file name or numeric expression.
/// ```no_run
/// # async fn run() -> octocrab::Result<()> {
/// # let octocrab = octocrab::Octocrab::default();
///
/// let issue = octocrab.workflows("owner", "repo")
///     .list_runs("ci.yml")
///     // Optional Parameters
///     .actor("octocat")
///     .branch("master")
///     .event("push")
///     .status("success")
///     .per_page(100)
///     .page(1u8)
///     // Send the request
///     .send()
///     .await?;
/// # Ok(())
/// # }
/// ```
List runs in the specified workflow.
workflow_file_or_id can be either file name or numeric expression.
List runs in the specified workflow . workflow_file_or_id can be either file name or numeric expression .
pub fn list_runs(&self, workflow_file_or_id: impl Into<String>) -> ListRunsBuilder<'_, '_> {
        ListRunsBuilder::new(
            self,
            ListRunsRequestType::ByWorkflow(workflow_file_or_id.into()),
        )
    }
pub fn list_runs ( & self , workflow_file_or_id : impl Into < String > ) -> ListRunsBuilder < ' _ , ' _ > { ListRunsBuilder :: new ( self , ListRunsRequestType :: ByWorkflow ( workflow_file_or_id . into ( ) ) , ) }
List runs in the specified workflow.
List runs in the specified workflow .
&self
workflow_file_or_id
impl Into<String>
&self
workflow_file_or_id
impl Into<String>
async fn run() -> octocrab::result<()> {
None
let octocrab = octocrab::octocrab::default();
let issue = octocrab.workflows("owner", "repo")
.list_runs("ci.yml")
Optional Parameters
.actor("octocat")
.branch("master")
.event("push")
.status("success")
.per_page(100)
.page(1u8)
Send the request
.send()
.await?.
let issue = octocrab . workflows ( " owner " " repo " ) . list_runs ( " ci . yml " ) Optional Parameters . actor ( " octocat " ) . branch ( " master " ) . event ( " push " ) . status ( " success " ) . per_page ( 100 ) . page ( 1u8 ) Send the request . send () . await? .
ok(())
None
}
None