Get build status
get_build_statusCheck whether a Bitbucket commit is green by retrieving its build statuses. Returns a verdict (successful, failed, in progress, stopped, or no statuses) to quickly answer if CI passed.
Instructions
Answer "is this commit green?" in one call, using Bitbucket's commit build statuses (Pipelines results plus anything else that posts a status). Pass commit (a SHA) or pr_id; with neither, it uses the current checkout's HEAD. verdict is FAILED / INPROGRESS / STOPPED / SUCCESSFUL / NO_STATUSES. NO_STATUSES means nothing posted a status — check list_pipelines before concluding a build did not run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Bitbucket repo slug. | |
| pr_id | No | Pull request id. | |
| commit | No | Commit SHA. Defaults to the checkout's HEAD. | |
| workspace | No | Bitbucket workspace (slug). |