We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In API orgs/{org}/teams, units are empty. This also includes when creating a new team via API. It does not return or accept any units.
orgs/{org}/teams
{ "id": 7, "name": "alpha-devs-2", "description": "This is via API 2", "permission": "read", "units": null }
This return null for post method and all units(permissions) in the web ui are disabled in this case.
{ "description": "This is via API 2", "name": "alpha-devs-2", "permission": "read", "units": [ "code" ] }
The text was updated successfully, but these errors were encountered:
Further update on this.
So i created new team with:
{ "description": "API team 2", "name": "API2", "permission": "write", "units": [ "repo.issues", "repo.code" ] }
That did work and returned:
{ "id": 9, "name": "API2", "description": "API team 2", "permission": "write", "units": [ "repo.issues", "repo.code" ] }
Ref, /~https://github.com/go-gitea/gitea/blob/master/models/unit.go#L79
But the Get call still return null for units.
[ { "id": 1, "name": "Owners", "description": "", "permission": "owner", "units": null }, { "id": 8, "name": "API1", "description": "API team 1", "permission": "read", "units": null }, { "id": 9, "name": "API2", "description": "API team 2", "permission": "write", "units": null } ]
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
In API
orgs/{org}/teams
, units are empty. This also includes when creating a new team via API. It does not return or accept any units.This return null for post method and all units(permissions) in the web ui are disabled in this case.
The text was updated successfully, but these errors were encountered: