From 17f9ce858a1cc11a349fbe2dfc79904af50e6046 Mon Sep 17 00:00:00 2001 From: xiangxinyong Date: Fri, 25 Oct 2019 13:01:05 +0800 Subject: [PATCH] add issueevent type --- gitee/hook_event_types.go | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gitee/hook_event_types.go b/gitee/hook_event_types.go index 5f84032..863e4ec 100644 --- a/gitee/hook_event_types.go +++ b/gitee/hook_event_types.go @@ -26,7 +26,24 @@ type PushEvent struct { } type IssueEvent struct { - Action *string `json:"action,omitempty"` + Action *string `json:"action,omitempty"` + Issue *Issue `json:"issue,omitempty"` + Repository *Project `json:"repository,omitempty"` + Project *Project `json:"project,omitempty"` + Sender *User `json:"sender,omitempty"` + TargetUser *User `json:"target_user,omitempty"` + User *User `json:"user,omitempty"` + Assignee *UserBasic `json:"assignee,omitempty"` + UpdatedBy *User `json:"updated_by,omitempty"` + IID string `json:"iid,omitempty"` + Title *string `json:"title,omitempty"` + Description *string `json:"description,omitempty"` + State *string `json:"state,omitempty"` + Milestone *Milestone `json:"milestone,omitempty"` + URL *string `json:"url,omitempty"` + Enterprise *EnterpriseBasic `json:"enterprise,omitempty"` + HookName *string `json:"hook_name,omitempty"` + Password *string `json:"password,omitempty"` } type RepoInfo struct { -- GitLab