Get build status
get_build_statusCheck if a commit or pull request passed build checks by querying Bitbucket's build statuses. Returns FAILED, INPROGRESS, STOPPED, SUCCESSFUL, or NO_STATUSES.
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). |