mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Add new create_fork arguments (#2493)
Adds support for new `create_fork` arguments: - `name` - To set the name of the fork on creation - `default_branch_only` - To only include the default branch Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>
This commit is contained in:
@@ -365,7 +365,10 @@ class Repository(CompletableGithubObject):
|
||||
def get_events(self) -> PaginatedList[Event]: ...
|
||||
def get_forks(self) -> PaginatedList[Repository]: ...
|
||||
def create_fork(
|
||||
self, organization: Union[Organization, str, _NotSetType] = ...
|
||||
self,
|
||||
organization: Union[Organization, str, _NotSetType] = ...,
|
||||
name: Union[str, _NotSetType] = ...,
|
||||
default_branch_only: Union[str, _NotSetType] = ...,
|
||||
) -> Repository: ...
|
||||
def get_git_blob(self, sha: str) -> GitBlob: ...
|
||||
def get_git_commit(self, sha: str) -> GitCommit: ...
|
||||
|
||||
Reference in New Issue
Block a user