From 0ef037c43dfa9e0961fd6b55dc6dc9576f1e3a06 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 3 Mar 2018 19:22:02 +0100 Subject: [PATCH 1/3] Modified assignees field in issue struct for preperation of go-gitea/gitea#1884 --- gitea/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/issue.go b/gitea/issue.go index 206c52a..03fd6b0 100644 --- a/gitea/issue.go +++ b/gitea/issue.go @@ -38,7 +38,7 @@ type Issue struct { Body string `json:"body"` Labels []*Label `json:"labels"` Milestone *Milestone `json:"milestone"` - Assignee *User `json:"assignee"` + Assignees []*User `json:"assignees"` // Whether the issue is open or closed // // type: string From a2463d39070dcae093a33a55c703f48effbf81f9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 3 Mar 2018 19:29:51 +0100 Subject: [PATCH 2/3] Modified assignees field in pr struct for preperation of go-gitea/gitea#1884 --- gitea/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/pull.go b/gitea/pull.go index ee3fe11..19ae44f 100644 --- a/gitea/pull.go +++ b/gitea/pull.go @@ -21,7 +21,7 @@ type PullRequest struct { Body string `json:"body"` Labels []*Label `json:"labels"` Milestone *Milestone `json:"milestone"` - Assignee *User `json:"assignee"` + Assignees []*User `json:"assignees"` State StateType `json:"state"` Comments int `json:"comments"` From ffe59b1ae75172d30820ab01116772a6610e607e Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 5 Mar 2018 17:51:49 +0100 Subject: [PATCH 3/3] Re-Added `Assignee` --- gitea/issue.go | 1 + gitea/pull.go | 1 + 2 files changed, 2 insertions(+) diff --git a/gitea/issue.go b/gitea/issue.go index 03fd6b0..9cf5924 100644 --- a/gitea/issue.go +++ b/gitea/issue.go @@ -38,6 +38,7 @@ type Issue struct { Body string `json:"body"` Labels []*Label `json:"labels"` Milestone *Milestone `json:"milestone"` + Assignee *User `json:"assignee"` Assignees []*User `json:"assignees"` // Whether the issue is open or closed // diff --git a/gitea/pull.go b/gitea/pull.go index 19ae44f..cea202a 100644 --- a/gitea/pull.go +++ b/gitea/pull.go @@ -21,6 +21,7 @@ type PullRequest struct { Body string `json:"body"` Labels []*Label `json:"labels"` Milestone *Milestone `json:"milestone"` + Assignee *User `json:"assignee"` Assignees []*User `json:"assignees"` State StateType `json:"state"` Comments int `json:"comments"`