Skip to content

Commit

Permalink
Export branches attribute of repository resource (integrations#959)
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 authored Dec 3, 2021
1 parent d76333c commit b50296e
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 @@ -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,
Expand Down

0 comments on commit b50296e

Please sign in to comment.