turbot/github

steampipe plugin install githubsteampipe plugin install github

Table: github_branch

A branch is essentially is a unique set of code changes with a unique name.

The github_branch table can be used to query information about any branch, and you must specify which repository in the where or join clause using the repository_full_name column.

Examples

List branches

select
name,
commit_sha,
protected
from
github_branch
where
repository_full_name = 'turbot/steampipe'

Get commit details for each branch (Not working yet)

Note: This example is intended to join branches with commit information to return the full details of each item. Currently joins with multiple columns are not working pending a solution to #47.

select
t.name,
t.commit_sha,
c.author_date,
c.message
from
github_branch as t,
github_commit as c
where
t.repository_full_name = 'turbot/steampipe'
and t.repository_full_name = c.repository_full_name
and t.commit_sha = c.sha
order by
c.author_date desc;

.inspect github_branch

Branches in the given repository.

NameTypeDescription
commit_shatextCommit SHA the branch refers to.
commit_urltextCommit URL the branch refers to.
nametextName of the branch.
protectedbooleanTrue if the branch is protected.
repository_full_nametextFull name of the repository that contains the branch.