Skip to content

Commit a7474e7

Browse files
soultkfcampbell
andauthored
Add build_type to datasource github_repository's pages (#1710)
PR #1663 added the "build_type" attribute to the github_repository resource. Since the corresponding data source uses the same code to parse the pages endpoint data, any use of the github_repository datasource would lead to an error, since the attribute did not exist there: > Error: error setting pages: Invalid address to set: []string{"pages", "0", "build_type"} This commit adds the missing attribute. The existing acceptance tests already cover it, failed for me when running without this commit, and passed after. Co-authored-by: Keegan Campbell <[email protected]>
1 parent 6b98ac5 commit a7474e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

github/data_source_github_repository.go

+4
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ func dataSourceGithubRepository() *schema.Resource {
135135
},
136136
},
137137
},
138+
"build_type": {
139+
Type: schema.TypeString,
140+
Computed: true,
141+
},
138142
"cname": {
139143
Type: schema.TypeString,
140144
Computed: true,

0 commit comments

Comments
 (0)