mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +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:
@@ -35,7 +35,12 @@ class Organization(CompletableGithubObject):
|
||||
@property
|
||||
def company(self) -> Optional[str]: ...
|
||||
def convert_to_outside_collaborator(self, member: NamedUser) -> None: ...
|
||||
def create_fork(self, repo: Repository) -> Repository: ...
|
||||
def create_fork(
|
||||
self,
|
||||
repo: Repository,
|
||||
name: Union[str, _NotSetType] = ...,
|
||||
default_branch_only: Union[str, _NotSetType] = ...,
|
||||
) -> Repository: ...
|
||||
def create_hook(
|
||||
self,
|
||||
name: str,
|
||||
|
||||
Reference in New Issue
Block a user