cops bitbucket command group provides read and validation operations against a Bitbucket Data Center instance. Commands use the active profile configured with cops auth login, or the profile you specify with --profile.
Quick reference
| Command | Description |
|---|---|
cops bitbucket repo get | Fetch repository details |
cops bitbucket branch list | List branches in a repository |
cops bitbucket branch exists | Check whether a branch exists |
cops bitbucket pr list | List pull requests |
cops bitbucket pr checks | Run release-branch PR readiness checks |
cops bitbucket commits list | List commits for a repository or branch |
cops bitbucket commit build-status <commit> | Get CI build statuses for a commit |
Command groups
cops bitbucket repo
Fetch repository details by project key and repository slug.
cops bitbucket branch
List branches and check whether a specific branch exists.
cops bitbucket pr
List pull requests by state and run release-branch readiness checks.
cops bitbucket commits
List commits for a repository or branch and inspect CI build statuses.
Common flags
Allcops bitbucket subcommands accept the following flags:
| Flag | Type | Default | Description |
|---|---|---|---|
--output | table | json | markdown | table | Output format |
--insecure | boolean | false | Disable TLS certificate validation |
--profile | string | active profile | Override the active config profile |
| Flag | Type | Description |
|---|---|---|
--project | string | Bitbucket project key (e.g. MYPROJ) |
--repo | string | Bitbucket repository slug (e.g. my-service) |
Prerequisites
You must have a Bitbucket profile configured before running anycops bitbucket command.
