mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Add Repository.rename_branch method (#2089)
The GitHub API exposes an endpoint to rename a branch, so we should support calling it. Sadly, there is not enough information to add that method to the Branch class, so expose it in the Repository object. Fixes #1901
This commit is contained in:
@@ -307,6 +307,9 @@ class Repository(CompletableGithubObject):
|
||||
) -> str: ...
|
||||
def get_assignees(self) -> PaginatedList[NamedUser]: ...
|
||||
def get_branch(self, branch: str) -> Branch: ...
|
||||
def rename_branch(
|
||||
self, branch: Union[str, Branch], new_name: str
|
||||
) -> bool: ...
|
||||
def get_branches(self) -> PaginatedList[Branch]: ...
|
||||
def get_check_run(self, check_run_id: int) -> CheckRun: ...
|
||||
def get_check_suite(self, check_suite_id: int) -> CheckSuite: ...
|
||||
|
||||
Reference in New Issue
Block a user