From 140e9fcba7583e1c6f22eb57676bb00794ef14a8 Mon Sep 17 00:00:00 2001 From: Harshit Bansal Date: Sun, 30 Dec 2018 23:50:44 +0530 Subject: [PATCH] Add `organization` field to `Team` struct. (#134) --- gitea/org_team.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gitea/org_team.go b/gitea/org_team.go index f3e98b9..9de0a8d 100644 --- a/gitea/org_team.go +++ b/gitea/org_team.go @@ -7,9 +7,10 @@ package gitea // Team represents a team in an organization type Team struct { - ID int64 `json:"id"` - Name string `json:"name"` - Description string `json:"description"` + ID int64 `json:"id"` + Name string `json:"name"` + Description string `json:"description"` + Organization *Organization `json:"organization"` // enum: none,read,write,admin,owner Permission string `json:"permission"` // enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki