Skip to content

Commit e5106c5

Browse files
committed
Comment out owner field for DS as well
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 7a32eb3 commit e5106c5

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

github/data_source_github_repository_pages.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ func dataSourceGithubRepositoryPages() *schema.Resource {
2020
Required: true,
2121
Description: "The repository name to get GitHub Pages information for.",
2222
},
23-
"owner": {
24-
Type: schema.TypeString,
25-
Required: true,
26-
Description: "The owner of the repository.",
27-
},
23+
// TODO: Uncomment this when we are ready to support owner fields properly. https://github.com/integrations/terraform-provider-github/pull/3166#discussion_r2816053082
24+
// "owner": {
25+
// Type: schema.TypeString,
26+
// Required: true,
27+
// Description: "The owner of the repository.",
28+
// },
2829
"source": {
2930
Type: schema.TypeList,
3031
Computed: true,
@@ -82,7 +83,7 @@ func dataSourceGithubRepositoryPagesRead(ctx context.Context, d *schema.Resource
8283
meta := m.(*Owner)
8384
client := meta.v3client
8485

85-
owner := d.Get("owner").(string)
86+
owner := meta.name // TODO: Add owner support // d.Get("owner").(string)
8687
repoName := d.Get("repository").(string)
8788

8889
pages, resp, err := client.Repositories.GetPagesInfo(ctx, owner, repoName)

0 commit comments

Comments
 (0)