Skip to content

Commit 3ab6abb

Browse files
authored
Merge pull request #58 from legendu-net/dev
Merge dev Into main
2 parents c744e15 + 4e297f7 commit 3ab6abb

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

github_rest_api/github.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,9 @@ def get_branches(self) -> list[dict[str, Any]]:
255255
"""List branches in this repository."""
256256
return self._get(url=self._url_branches).json()
257257

258-
def delete(self, ref: str) -> dict[str, str]:
259-
return self._delete(url=self._url_repo).json()
258+
def delete(self) -> requests.Response:
259+
"""Delete this repository from GitHub."""
260+
return self._delete(url=self._url_repo)
260261

261262
def delete_ref(self, ref: str) -> dict[str, Any]:
262263
"""Delete a reference from this repository.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = [ "hatchling" ]
44

55
[project]
66
name = "github-rest-api"
7-
version = "0.33.0"
7+
version = "0.33.1"
88
description = "Simple wrapper of GitHub REST APIs."
99
readme = "README.md"
1010
authors = [ { name = "Ben Du", email = "longendu@yahoo.com" } ]

0 commit comments

Comments
 (0)