From 103137686e5c863cb22d8ba08d1006a38f248def Mon Sep 17 00:00:00 2001 From: Enrico Ludwig Date: Thu, 1 Aug 2024 17:44:21 +0200 Subject: [PATCH] Added units_map to create_team function as it's part of the Gitea API at least for version 1.22.1 --- gitea/gitea.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gitea/gitea.py b/gitea/gitea.py index 81f7b07..ccb419d 100644 --- a/gitea/gitea.py +++ b/gitea/gitea.py @@ -352,6 +352,15 @@ class Gitea: "repo.releases", "repo.ext_wiki", ), + units_map: Dict[str, str] = { + "repo.code": "none", + "repo.issues": "none", + "repo.ext_issues": "none", + "repo.wiki": "none", + "repo.pulls": "none", + "repo.releases": "none", + "repo.ext_wiki": "none", + }, ): """Creates a Team. @@ -370,6 +379,7 @@ class Gitea: "can_create_org_repo": can_create_org_repo, "includes_all_repositories": includes_all_repositories, "units": units, + "units_map": units_map, }, ) if "id" in result: