You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "The ID of the repository to configure GitHub Pages for.",
38
38
},
39
-
"owner": {
40
-
Type: schema.TypeString,
41
-
Required: true,
42
-
ForceNew: true,
43
-
Description: "The owner of the repository to configure GitHub Pages for.",
44
-
},
39
+
// TODO: Uncomment this when we are ready to support owner fields properly. https://github.com/integrations/terraform-provider-github/pull/3166#discussion_r2816053082
40
+
// "owner": {
41
+
// Type: schema.TypeString,
42
+
// Required: true,
43
+
// ForceNew: true,
44
+
// Description: "The owner of the repository to configure GitHub Pages for.",
45
+
// },
45
46
"source": {
46
47
Type: schema.TypeList,
47
48
MaxItems: 1,
@@ -104,7 +105,7 @@ func resourceGithubRepositoryPagesCreate(ctx context.Context, d *schema.Resource
104
105
meta:=m.(*Owner)
105
106
client:=meta.v3client
106
107
107
-
owner:=d.Get("owner").(string)
108
+
owner:=meta.name// TODO: Add owner support // d.Get("owner").(string)
108
109
repoName:=d.Get("repository").(string)
109
110
110
111
pages:=expandPagesForCreate(d)
@@ -161,7 +162,7 @@ func resourceGithubRepositoryPagesRead(ctx context.Context, d *schema.ResourceDa
161
162
meta:=m.(*Owner)
162
163
client:=meta.v3client
163
164
164
-
owner:=d.Get("owner").(string)
165
+
owner:=meta.name// TODO: Add owner support // d.Get("owner").(string)
0 commit comments