Skip to content

Commit 50320f5

Browse files
authored
Revert forking change (#1137)
1 parent 07137c7 commit 50320f5

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

github/data_source_github_repository.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ func dataSourceGithubRepository() *schema.Resource {
7979
Type: schema.TypeBool,
8080
Computed: true,
8181
},
82-
"allow_forking": {
83-
Type: schema.TypeBool,
84-
Optional: true,
85-
Default: true,
86-
},
8782
"default_branch": {
8883
Type: schema.TypeString,
8984
Computed: true,
@@ -234,7 +229,6 @@ func dataSourceGithubRepositoryRead(d *schema.ResourceData, meta interface{}) er
234229
d.Set("allow_squash_merge", repo.GetAllowSquashMerge())
235230
d.Set("allow_rebase_merge", repo.GetAllowRebaseMerge())
236231
d.Set("allow_auto_merge", repo.GetAllowAutoMerge())
237-
d.Set("allow_forking", repo.GetAllowForking())
238232
d.Set("has_downloads", repo.GetHasDownloads())
239233
d.Set("full_name", repo.GetFullName())
240234
d.Set("default_branch", repo.GetDefaultBranch())

github/resource_github_repository.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ func resourceGithubRepository() *schema.Resource {
9494
Optional: true,
9595
Default: false,
9696
},
97-
"allow_forking": {
98-
Type: schema.TypeBool,
99-
Optional: true,
100-
Default: true,
101-
},
10297
"delete_branch_on_merge": {
10398
Type: schema.TypeBool,
10499
Optional: true,
@@ -300,7 +295,6 @@ func resourceGithubRepositoryObject(d *schema.ResourceData) *github.Repository {
300295
AllowSquashMerge: github.Bool(d.Get("allow_squash_merge").(bool)),
301296
AllowRebaseMerge: github.Bool(d.Get("allow_rebase_merge").(bool)),
302297
AllowAutoMerge: github.Bool(d.Get("allow_auto_merge").(bool)),
303-
AllowForking: github.Bool(d.Get("allow_forking").(bool)),
304298
DeleteBranchOnMerge: github.Bool(d.Get("delete_branch_on_merge").(bool)),
305299
AutoInit: github.Bool(d.Get("auto_init").(bool)),
306300
LicenseTemplate: github.String(d.Get("license_template").(string)),
@@ -446,7 +440,6 @@ func resourceGithubRepositoryRead(d *schema.ResourceData, meta interface{}) erro
446440
d.Set("allow_squash_merge", repo.GetAllowSquashMerge())
447441
d.Set("allow_rebase_merge", repo.GetAllowRebaseMerge())
448442
d.Set("allow_auto_merge", repo.GetAllowAutoMerge())
449-
d.Set("allow_forking", repo.GetAllowForking())
450443
d.Set("delete_branch_on_merge", repo.GetDeleteBranchOnMerge())
451444
d.Set("has_downloads", repo.GetHasDownloads())
452445
d.Set("full_name", repo.GetFullName())

github/resource_github_repository_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ func TestAccGithubRepositories(t *testing.T) {
3131
allow_squash_merge = false
3232
allow_rebase_merge = false
3333
allow_auto_merge = true
34-
allow_forking = false
3534
auto_init = false
3635
3736
}
@@ -46,10 +45,6 @@ func TestAccGithubRepositories(t *testing.T) {
4645
"github_repository.test", "allow_auto_merge",
4746
"true",
4847
),
49-
resource.TestCheckResourceAttr(
50-
"github_repository.test", "allow_forking",
51-
"false",
52-
),
5348
)
5449

5550
testCase := func(t *testing.T, mode string) {

website/docs/d/repository.html.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ The following arguments are supported:
5151

5252
* `allow_auto_merge` - Whether the repository allows auto-merging pull requests.
5353

54-
* `allow_forking` - Whether true to allow private forks, or false to prevent private forks.
55-
5654
* `has_downloads` - Whether the repository has Downloads feature enabled.
5755

5856
* `default_branch` - The name of the default branch of the repository.

0 commit comments

Comments
 (0)