Use this data source to retrieve information about a repository branch.
data "github_branch" "development" {
repository = "example"
branch = "development"
}
The following arguments are supported:
repository
- (Required) The GitHub repository name.
branch
- (Required) The repository branch to retrieve.
The following additional attributes are exported:
etag
- An etag representing the Branch object.
ref
- A string representing a branch reference, in the form of refs/heads/<branch>
.
sha
- A string storing the reference's HEAD
commit's SHA1.