pub fn active_run(
token: &str,
repo: &Repo,
workflow: &str,
sha: &str,
) -> Result<Option<ActiveRun>>Expand description
The first run of the workflow file workflow at commit sha that has not
ended, from GET /repos/{owner}/{repo}/actions/workflows/{workflow}/runs
with head_sha (list workflow runs). The first 100 runs of that commit
are read, and the commit is checked again on each, so a server that
ignores the filter finds no run for another commit.
A run has not ended unless its status is completed, so a status GitHub
adds later, or none at all, counts as running.
ยงErrors
Returns an error when the GitHub client cannot be built or the request or
its decoding fails, for example when no workflow file has that name. Only
a lookup that GitHub gave no answer to is a lookup::Unavailable.