CI status
project_ci_statusRead CI status for a branch, workflow, run, or PR to confirm checks passed before merging; supports GitHub Actions, GitLab, and Bitbucket.
Instructions
Read CI status: recent runs for a branch/workflow, one run with its jobs, or branch-protection check-runs for a ref/PR (GitHub). GitHub Actions, GitLab pipelines and Bitbucket Pipelines are supported. Use when: after pushing or triggering a pipeline, to see whether checks passed before merging; pass pr= (or ref=) for branch-protection check-runs (GitHub). Avoid when: you need the failure detail (use project_ci_logs with the run_id/job_id). Speed: 1-2 API calls; newest runs first. pr= adds one call to resolve the head sha. Output: ci_status: overall (success|failure|in_progress|no_runs|no_checks) + runs[] {id, name, status, conclusion, branch, sha, url}; run_id → run + jobs[]; ref/pr → check_runs[] (GitHub) or the newest pipeline (GitLab/Bitbucket). Batch-safe: yes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | PR number or PR URL: read check-runs for the PR head commit. | |
| ref | No | Commit sha or branch: read check-runs (GitHub) or the newest pipeline for that ref. | |
| 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). | |
| limit | No | Max runs (or check-runs) to list (default 10 / 20). | |
| branch | No | Filter runs by branch. | |
| run_id | No | Inspect one run: GitHub/GitLab numeric id, or a Bitbucket pipeline UUID. | |
| provider | No | Provider override for this call (default: VENIRA_GIT_PROVIDER, then venira.config.json, then inferred from the origin remote). | |
| workflow | No | Workflow file name (ci.yml) or numeric id. |