cops bitbucket commits commands let you browse commit history and check CI build results. They call the Bitbucket REST API (/rest/api/1.0) and the Bitbucket build-status API (/rest/build-status/1.0).
cops bitbucket commits list
cops bitbucket commits list
List commits for a Bitbucket repository. Optionally scope the listing to a specific branch.Alias:
cops bitbucket commits lsUsage
Flags
Bitbucket project key (e.g.
MYPROJ).Bitbucket repository slug (e.g.
my-service).Branch name to scope the commit listing to (without the
refs/heads/ prefix). If omitted, commits from all branches are returned.Maximum number of commits to return.
Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
id, shortId, author, message, timestampExamples
cops bitbucket commit build-status
cops bitbucket commit build-status
Get CI build statuses for a specific commit SHA. Returns all build status entries reported by connected CI systems.Alias:
cops bitbucket commit statusUsage
Arguments
| Argument | Required | Description |
|---|---|---|
commit | Yes | Full commit SHA |
Flags
Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
key, name, state, description, url, dateAddedExamples
Build status entries are reported by CI tools integrated with your Bitbucket Data Center instance (e.g. Bamboo). If no integrations are configured, the output will be empty.
Related
cops bitbucket branch
List branches and check whether a branch exists.
cops bitbucket pr
List pull requests and run PR readiness checks.
