From 2acb13aea2556be96ef5c50b96e75f1c1b58dcc3 Mon Sep 17 00:00:00 2001 From: Takuma Kajikawa Date: Thu, 1 Sep 2022 03:23:04 +0900 Subject: [PATCH] Add create fork options --- github/repos_forks.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/github/repos_forks.go b/github/repos_forks.go index 97bb328ffb4..8a88aad618e 100644 --- a/github/repos_forks.go +++ b/github/repos_forks.go @@ -53,7 +53,9 @@ func (s *RepositoriesService) ListForks(ctx context.Context, owner, repo string, // RepositoriesService.CreateFork method. type RepositoryCreateForkOptions struct { // The organization to fork the repository into. - Organization string `url:"organization,omitempty"` + Organization string `url:"organization,omitempty"` + Name string `url:"name,omitempty"` + DefaultBranchOnly string `url:"default_branch_only,omitempty"` } // CreateFork creates a fork of the specified repository.