kopia lustrzana https://github.com/Langenfeld/py-gitea
Added units_map to create_team function as it's part of the Gitea API at least for version 1.22.1
rodzic
22bfab0c43
commit
103137686e
|
@ -352,6 +352,15 @@ class Gitea:
|
||||||
"repo.releases",
|
"repo.releases",
|
||||||
"repo.ext_wiki",
|
"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.
|
"""Creates a Team.
|
||||||
|
|
||||||
|
@ -370,6 +379,7 @@ class Gitea:
|
||||||
"can_create_org_repo": can_create_org_repo,
|
"can_create_org_repo": can_create_org_repo,
|
||||||
"includes_all_repositories": includes_all_repositories,
|
"includes_all_repositories": includes_all_repositories,
|
||||||
"units": units,
|
"units": units,
|
||||||
|
"units_map": units_map,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
if "id" in result:
|
if "id" in result:
|
||||||
|
|
Ładowanie…
Reference in New Issue