From 0584d553818813c6b72141f48bbe48242394250b Mon Sep 17 00:00:00 2001 From: Murukesh Mohanan Date: Thu, 28 Oct 2021 16:50:50 +0900 Subject: [PATCH] Export branches attribute of repository resource In #892, the newly-added `branches` attribute was exported for the data source, but not the resource. This exports `branches` in the resource too. --- github/resource_github_repository.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/github/resource_github_repository.go b/github/resource_github_repository.go index 8adf0be130..3412175a7b 100644 --- a/github/resource_github_repository.go +++ b/github/resource_github_repository.go @@ -126,6 +126,22 @@ func resourceGithubRepository() *schema.Resource { Type: schema.TypeBool, Optional: true, }, + "branches": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Computed: true, + }, + "protected": { + Type: schema.TypeBool, + Computed: true, + }, + }, + }, + }, "pages": { Type: schema.TypeList, MaxItems: 1,