The gitlab_project_branches
data source allows details of the branches of a given project to be retrieved.
Upstream API: GitLab REST API docs
data "gitlab_project_branches" "example" {
project = 30
}
data "gitlab_project_branches" "example" {
project = "foo/bar/baz"
}
project
(String) ID or URL-encoded path of the project owned by the authenticated user.branches
(List of Object) The list of branches of the project, as defined below. (see below for nested schema)id
(String) The ID of this resource.branches
Read-Only:
can_push
(Boolean)commit
(Set of Object) (see below for nested schema)default
(Boolean)developers_can_merge
(Boolean)developers_can_push
(Boolean)merged
(Boolean)name
(String)protected
(Boolean)web_url
(String)branches.commit
Read-Only:
author_email
(String)author_name
(String)authored_date
(String)committed_date
(String)committer_email
(String)committer_name
(String)id
(String)message
(String)parent_ids
(Set of String)short_id
(String)title
(String)