Crates.io | wrkflw-gitlab |
lib.rs | wrkflw-gitlab |
version | 0.7.3 |
created_at | 2025-08-09 12:39:33.444821+00 |
updated_at | 2025-08-28 07:32:57.497157+00 |
description | GitLab API integration for wrkflw workflow execution engine |
homepage | https://github.com/bahdotsh/wrkflw |
repository | https://github.com/bahdotsh/wrkflw |
max_upload_size | |
id | 1787894 |
size | 47,002 |
GitLab integration helpers used by wrkflw
to trigger pipelines.
use wrkflw_gitlab::{get_repo_info, trigger_pipeline};
# tokio_test::block_on(async {
let info = get_repo_info()?;
println!("{}/{} (default branch: {})", info.namespace, info.project, info.default_branch);
// Requires GITLAB_TOKEN in env (api scope)
trigger_pipeline(Some("main"), None).await?;
# Ok::<_, Box<dyn std::error::Error>>(())
# })?;
Notes: looks for .gitlab-ci.yml
in the repo root when listing pipelines.