From c93731339f3da01bb1158acc7acf781f0dfe2468 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 9 Mar 2017 00:03:29 -0500 Subject: webhook: support Issues event (#2319) Also addresses #3485. --- vendor/github.com/gogits/go-gogs-client/user.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vendor/github.com/gogits/go-gogs-client/user.go') diff --git a/vendor/github.com/gogits/go-gogs-client/user.go b/vendor/github.com/gogits/go-gogs-client/user.go index b385b041..3879b1a6 100644 --- a/vendor/github.com/gogits/go-gogs-client/user.go +++ b/vendor/github.com/gogits/go-gogs-client/user.go @@ -18,12 +18,13 @@ type User struct { AvatarUrl string `json:"avatar_url"` } -// MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility +// MarshalJSON implements the json.Marshaler interface for User func (u User) MarshalJSON() ([]byte, error) { // Re-declaring User to avoid recursion type shadow User return json.Marshal(struct { shadow + // LEGACY [Gogs 1.0]: remove field(s) for backward compatibility CompatUserName string `json:"username"` }{shadow(u), u.UserName}) } -- cgit v1.2.3