Skip to content

Commit 1c821b2

Browse files
make status computed & remove unnecessary change
1 parent ca85b87 commit 1c821b2

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

github/resource_github_repository.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func resourceGithubRepository() *schema.Resource {
371371
},
372372
"status": {
373373
Type: schema.TypeString,
374-
Optional: true,
374+
Computed: true,
375375
Description: "The GitHub Pages site's build status e.g. building or built.",
376376
},
377377
"url": {
@@ -1099,12 +1099,7 @@ func expandPages(input []any) *github.Pages {
10991099
buildType = github.String(v)
11001100
}
11011101

1102-
var public *bool
1103-
// Only set the github.PagesUpdate public field if the value is a valid boolean.
1104-
if v, ok := pages["public"].(bool); ok {
1105-
public = github.Bool(v)
1106-
}
1107-
return &github.Pages{Source: source, BuildType: buildType, Public: public}
1102+
return &github.Pages{Source: source, BuildType: buildType}
11081103
}
11091104

11101105
func expandPagesUpdate(input []any) *github.PagesUpdate {

0 commit comments

Comments
 (0)