From 79a1041f5fed547909d94abc3cde2c254ade7456 Mon Sep 17 00:00:00 2001 From: Ben Du Date: Mon, 20 Apr 2026 16:23:06 -0700 Subject: [PATCH 1/2] fix issue --- github_rest_api/github.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/github_rest_api/github.py b/github_rest_api/github.py index 4a07a58..988a5d2 100644 --- a/github_rest_api/github.py +++ b/github_rest_api/github.py @@ -255,8 +255,9 @@ def get_branches(self) -> list[dict[str, Any]]: """List branches in this repository.""" return self._get(url=self._url_branches).json() - def delete(self, ref: str) -> dict[str, str]: - return self._delete(url=self._url_repo).json() + def delete(self) -> requests.Response: + """Delete this repository from GitHub.""" + return self._delete(url=self._url_repo) def delete_ref(self, ref: str) -> dict[str, Any]: """Delete a reference from this repository. From 4e297f7da1ced90ccbe54040c3dcbe40117650c4 Mon Sep 17 00:00:00 2001 From: Ben Du Date: Mon, 20 Apr 2026 16:23:13 -0700 Subject: [PATCH 2/2] bump up version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6ffd289..292ff52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = [ "hatchling" ] [project] name = "github-rest-api" -version = "0.33.0" +version = "0.33.1" description = "Simple wrapper of GitHub REST APIs." readme = "README.md" authors = [ { name = "Ben Du", email = "longendu@yahoo.com" } ]