turbot/bitbucket

steampipe plugin install bitbucketsteampipe plugin install bitbucket

Table: bitbucket_tag

Tags mark a specific commit at a point in your repository history. When you tag a commit, you're including all the changes before it. You can later compare tags to see the difference between two points in history. Tags are commonly used to mark release versions, with the release name as the tag name.

The bitbucket_tag table can be used to query information about ANY repository, and you must specify which repository in the where.

Examples

Get commits by tags

select
name,
repository_full_name,
split_part(target -> 'links' ->> 'self', '/commit/', 2) as commit_hash
from
bitbucket_tag
where
repository_full_name = 'my-workspace/my-repo';

.inspect bitbucket_tag

Bitbucket repository tags.

NameTypeDescription
headsjsonbThe repository's full name.
nametextName of the ref.
repository_full_nametextThe concatenation of the repository owner's username and the slugified name, e.g. "turbot/steampipe-plugin-bitbucket". This is the same string used in Bitbucket URLs.
self_linktextA link to a resource related to this object.
targetjsonbSpecifies details of target of the tag.
titletextTitle of the resource.
typetextType of the Bitbucket resource. It will be always "tag".