Skip to content

Commit

Permalink
Export branches attribute of repository resource
Browse files Browse the repository at this point in the history
In integrations#892, the newly-added `branches` attribute was exported for the data
source, but not the resource. This exports `branches` in the resource
too.
  • Loading branch information
muru committed Oct 28, 2021
1 parent e9de238 commit 0584d55
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions github/resource_github_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0584d55

Please sign in to comment.