]> source.dussan.org Git - gitea.git/commit
Fix organization field being null in POST /orgs/{orgid}/teams (#27150) (#27167)
authorGiteabot <teabot@gitea.io>
Thu, 21 Sep 2023 20:23:33 +0000 (04:23 +0800)
committerGitHub <noreply@github.com>
Thu, 21 Sep 2023 20:23:33 +0000 (22:23 +0200)
commitd99479c8102ab475643f6540663d9b046856c7a2
treeb54d020ac76253083ae82d91ee1a7d6682938ae4
parentfbe1f3511220f282bb47e5ceb2f5dd98a7623cea
Fix organization field being null in POST /orgs/{orgid}/teams (#27150) (#27167)

Backport #27150 by @memphis88

Similarly to the fix in https://github.com/go-gitea/gitea/pull/24694,
this addresses the team creation not returning the organization
information in the response.

This fix is connected to the
[issue](https://gitea.com/gitea/terraform-provider-gitea/issues/27)
discovered in the terraform provider.
Moreover, the
[documentation](https://docs.gitea.com/api/1.20/#tag/organization/operation/orgCreateTeam)
suggests that the response body should include the `organization` field
(currently being `null`).

Co-authored-by: Dionysios Kakouris <1369451+memphis88@users.noreply.github.com>