[PR #5188] [MERGED] Fix create team, update team missing units #17686

Closed
opened 2025-11-02 15:01:55 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5188
Author: @lunny
Created: 10/26/2018
Status: Merged
Merged: 11/10/2018
Merged by: @techknowlogick

Base: masterHead: lunny/fix_api_create_team


📝 Commits (8)

📊 Changes

7 files changed (+128 additions, -2 deletions)

View changed files

📝 Gopkg.lock (+2 -2)
📝 models/org_team.go (+26 -0)
📝 models/unit.go (+17 -0)
📝 routers/api/v1/convert/convert.go (+1 -0)
📝 routers/api/v1/org/team.go (+27 -0)
📝 templates/swagger/v1_json.tmpl (+48 -0)
📝 vendor/code.gitea.io/sdk/gitea/org_team.go (+7 -0)

📄 Description

Should fix #5187. Now when you use the API, you have to give the units on the form if the team is not an admin team. The units is an array of string, it could be repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki now.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5188 **Author:** [@lunny](https://github.com/lunny) **Created:** 10/26/2018 **Status:** ✅ Merged **Merged:** 11/10/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `lunny/fix_api_create_team` --- ### 📝 Commits (8) - [`0f899eb`](https://github.com/go-gitea/gitea/commit/0f899ebaddcd052119f0fc9f4192696bd790558e) fix create team, update team missing units - [`e3f4763`](https://github.com/go-gitea/gitea/commit/e3f4763882e0652d8ab283126f9bdec36b885bb1) fix bug - [`daad21a`](https://github.com/go-gitea/gitea/commit/daad21ab953201bd990daa9d07de809b124e0f08) update swagger - [`71d910b`](https://github.com/go-gitea/gitea/commit/71d910ba2f27351202a8ae52e3e399e559ab9231) fix swagger doc - [`c3f53f5`](https://github.com/go-gitea/gitea/commit/c3f53f5fe618c14803a8eee60ea5b08ad4f46d55) fix swagger doc - [`5ef2eae`](https://github.com/go-gitea/gitea/commit/5ef2eae735bb3b3bb13af193e4af22c6d483d738) update dependecy - [`6605fff`](https://github.com/go-gitea/gitea/commit/6605fff41a40f4634afb3dbc96be2d10ad97647f) remove newline at the end - [`a4a1ca5`](https://github.com/go-gitea/gitea/commit/a4a1ca5f202315cb7404e5ba6fed86bf21a3517e) Merge branch 'master' into lunny/fix_api_create_team ### 📊 Changes **7 files changed** (+128 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Gopkg.lock` (+2 -2) 📝 `models/org_team.go` (+26 -0) 📝 `models/unit.go` (+17 -0) 📝 `routers/api/v1/convert/convert.go` (+1 -0) 📝 `routers/api/v1/org/team.go` (+27 -0) 📝 `templates/swagger/v1_json.tmpl` (+48 -0) 📝 `vendor/code.gitea.io/sdk/gitea/org_team.go` (+7 -0) </details> ### 📄 Description Should fix #5187. Now when you use the API, you have to give the units on the form if the team is not an admin team. The units is an array of string, it could be `repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki` now. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 15:01:55 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17686