Files
wrkflw/crates/gitlab
bahdotsh 960f7486a2 Release 0.7.0
wrkflw@0.7.0
wrkflw-evaluator@0.7.0
wrkflw-executor@0.7.0
wrkflw-github@0.7.0
wrkflw-gitlab@0.7.0
wrkflw-logging@0.7.0
wrkflw-matrix@0.7.0
wrkflw-models@0.7.0
wrkflw-parser@0.7.0
wrkflw-runtime@0.7.0
wrkflw-ui@0.7.0
wrkflw-utils@0.7.0
wrkflw-validators@0.7.0

Generated by cargo-workspaces
2025-08-13 18:07:11 +05:30
..
2025-08-13 18:07:11 +05:30

wrkflw-gitlab

GitLab integration helpers used by wrkflw to trigger pipelines.

  • Reads repo info from local git remote
  • Triggers pipelines via GitLab API

Example

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.