From 3444b63ec2a8ed2b7665fe48f8747b88e6d5dcd8 Mon Sep 17 00:00:00 2001 From: Murukesh Mohanan Date: Sat, 4 Dec 2021 00:30:32 +0900 Subject: [PATCH] Export branches attribute of repository resource (#959) 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 a5e8830e47..b203ab535f 100644 --- a/github/resource_github_repository.go +++ b/github/resource_github_repository.go @@ -127,6 +127,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,