A branch is essentially is a unique set of code changes with a unique name.
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
selectname,commit_sha,protectedfromgithub_branchwhererepository_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.
selectt.name,t.commit_sha,c.author_date,c.messagefromgithub_branch as t,github_commit as cwheret.repository_full_name = 'turbot/steampipe'and t.repository_full_name = c.repository_full_nameand t.commit_sha = c.shaorder byc.author_date desc;
Branches in the given repository.
|commit_sha||text||Commit SHA the branch refers to.|
|commit_url||text||Commit URL the branch refers to.|
|name||text||Name of the branch.|
|protected||boolean||True if the branch is protected.|
|repository_full_name||text||Full name of the repository that contains the branch.|