Skip to content

Commit 0a6e36a

Browse files
committed
Add AllowForking to Repository struct
1 parent 3778a1f commit 0a6e36a

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/repos.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ type Repository struct {
6666
AllowSquashMerge *bool `json:"allow_squash_merge,omitempty"`
6767
AllowMergeCommit *bool `json:"allow_merge_commit,omitempty"`
6868
AllowAutoMerge *bool `json:"allow_auto_merge,omitempty"`
69+
AllowForking *bool `json:"allow_forking,omitempty"`
6970
DeleteBranchOnMerge *bool `json:"delete_branch_on_merge,omitempty"`
7071
Topics []string `json:"topics,omitempty"`
7172
Archived *bool `json:"archived,omitempty"`
@@ -363,6 +364,7 @@ type createRepoRequest struct {
363364
AllowMergeCommit *bool `json:"allow_merge_commit,omitempty"`
364365
AllowRebaseMerge *bool `json:"allow_rebase_merge,omitempty"`
365366
AllowAutoMerge *bool `json:"allow_auto_merge,omitempty"`
367+
AllowForking *bool `json:"allow_forking,omitempty"`
366368
DeleteBranchOnMerge *bool `json:"delete_branch_on_merge,omitempty"`
367369
}
368370

@@ -406,6 +408,7 @@ func (s *RepositoriesService) Create(ctx context.Context, org string, repo *Repo
406408
AllowMergeCommit: repo.AllowMergeCommit,
407409
AllowRebaseMerge: repo.AllowRebaseMerge,
408410
AllowAutoMerge: repo.AllowAutoMerge,
411+
AllowForking: repo.AllowForking,
409412
DeleteBranchOnMerge: repo.DeleteBranchOnMerge,
410413
}
411414

0 commit comments

Comments
 (0)