get_build_status
Retrieve CI build status for a commit or pull request. Automatically resolve the latest commit when providing a pull request ID, and obtain build state, name, and URL.
Instructions
Get CI build status for a commit or pull request. When prId is provided, automatically resolves the latest commit. Returns build state (SUCCESSFUL, FAILED, INPROGRESS), name, and URL to the CI build.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | No | Pull request ID. If provided, resolves the latest commit automatically. | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. Only needed with prId. | |
| commitId | No | Full commit hash. Use this or prId, not both. | |
| repository | No | Repository slug. Only needed with prId. |