Trigger CI workflow
project_ci_triggerTrigger a GitHub Actions workflow_dispatch, GitLab pipeline, or Bitbucket custom pipeline for a branch, including reruns and input/variable dispatch, without creating a new commit.
Instructions
Trigger a pipeline: GitHub Actions workflow_dispatch, a GitLab pipeline, or a Bitbucket custom pipeline. Ref defaults to the current branch. Use when: re-running a pipeline for a branch without a new commit, or dispatching a workflow with inputs/variables. Avoid when: the workflow has no workflow_dispatch trigger (GitHub rejects it), or a push would do it anyway. Speed: one API call; the new run appears in project_ci_status within ~10s. Output: ci_trigger: repo, provider, workflow, ref, inputs, triggered, dispatched_at. Batch-safe: no
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch/tag to run on (default: current branch, else default branch). | |
| repo | No | Repository as "owner/name" or a PR URL (default: VENIRA_GIT_REPO, git.repo in venira.config.json, else the workspace .git origin remote). | |
| inputs | No | ||
| reason | No | Why this change is made (e.g. "sua loi null pointer o dong 45"). Recorded in the audit trail so later sessions know the intent. Single line, max 400 chars, secrets are redacted. | |
| provider | No | Provider override for this call (default: VENIRA_GIT_PROVIDER, then venira.config.json, then inferred from the origin remote). | |
| workflow | No | GitHub: workflow file name (ci.yml) or id (required). GitLab: optional label. Bitbucket: custom pipeline pattern (default: default). |