-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.Issue needs no code to be fixed, only a description on how to fix it yourself.
Description
It looks like the projects toggle in https://try.gitea.io/api/swagger#/organization/orgCreateTeam is missing (bold in the list below).
Adding it manually in the call does work properly though.
tooling_team_write_payload='{
"can_create_org_repo": true,
"description": "The tooling team - can write",
"includes_all_repositories": false,
"name": "gitea-tooling-write",
"permission": "write",
"units": [
"repo.code",
"repo.issues",
"repo.ext_issues",
"repo.wiki",
"repo.pulls",
"repo.releases",
"repo.projects",
"repo.ext_wiki"
]
}'
tooling_team_write_data=curl -s --user $user:$pwd -X POST "http://gitea:3000/api/v1/orgs/infraautomator/teams" -H "accept: application/json" -H "Content-Type: application/json" -d "${tooling_team_write_payload}"
Metadata
Metadata
Assignees
Labels
type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.Issue needs no code to be fixed, only a description on how to fix it yourself.