Files
wrkflw/crates/github
bahdotsh 5ac563d213 Release 0.8.0
wrkflw@0.8.0
wrkflw-evaluator@0.8.0
wrkflw-executor@0.8.0
wrkflw-github@0.8.0
wrkflw-gitlab@0.8.0
wrkflw-logging@0.8.0
wrkflw-matrix@0.8.0
wrkflw-models@0.8.0
wrkflw-parser@0.8.0
wrkflw-runtime@0.8.0
wrkflw-secrets@0.8.0
wrkflw-trigger-filter@0.8.0
wrkflw-ui@0.8.0
wrkflw-utils@0.8.0
wrkflw-validators@0.8.0
wrkflw-watcher@0.8.0

Generated by cargo-workspaces
2026-04-22 00:22:41 +05:30
..
2026-04-22 00:22:41 +05:30

wrkflw-github

GitHub integration helpers used by wrkflw to list/trigger workflows.

  • List workflows in .github/workflows
  • Trigger workflow_dispatch events over the GitHub API

Example

use wrkflw_github::{get_repo_info, trigger_workflow};

# tokio_test::block_on(async {
let info = get_repo_info()?;
println!("{}/{} (default branch: {})", info.owner, info.repo, info.default_branch);

// Requires GITHUB_TOKEN in env
trigger_workflow("ci", Some("main"), None).await?;
# Ok::<_, Box<dyn std::error::Error>>(())
# })?;

Notes: set GITHUB_TOKEN with the workflow scope; only public repos are supported out-of-the-box.