Unverified Commit 4baaa27b authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Merge pull request #608 from manland/improveWebHook

some minor fix for web hooks
parents 1e744e58 6f64cf53
...@@ -82,6 +82,7 @@ type TagEvent struct { ...@@ -82,6 +82,7 @@ type TagEvent struct {
UserName string `json:"user_name"` UserName string `json:"user_name"`
UserAvatar string `json:"user_avatar"` UserAvatar string `json:"user_avatar"`
ProjectID int `json:"project_id"` ProjectID int `json:"project_id"`
Message string `json:"message"`
Project struct { Project struct {
Name string `json:"name"` Name string `json:"name"`
Description string `json:"description"` Description string `json:"description"`
...@@ -161,6 +162,11 @@ type IssueEvent struct { ...@@ -161,6 +162,11 @@ type IssueEvent struct {
Username string `json:"username"` Username string `json:"username"`
AvatarURL string `json:"avatar_url"` AvatarURL string `json:"avatar_url"`
} `json:"assignee"` } `json:"assignee"`
Assignees []struct {
Name string `json:"name"`
Username string `json:"username"`
AvatarURL string `json:"avatar_url"`
} `json:"assignees"`
Labels []Label `json:"labels"` Labels []Label `json:"labels"`
Changes struct { Changes struct {
Labels struct { Labels struct {
...@@ -407,7 +413,31 @@ type IssueCommentEvent struct { ...@@ -407,7 +413,31 @@ type IssueCommentEvent struct {
StDiff []*Diff `json:"st_diff"` StDiff []*Diff `json:"st_diff"`
URL string `json:"url"` URL string `json:"url"`
} `json:"object_attributes"` } `json:"object_attributes"`
Issue *Issue `json:"issue"` Issue struct {
ID int `json:"id"`
IID int `json:"iid"`
ProjectID int `json:"project_id"`
MilestoneID int `json:"milestone_id"`
AuthorID int `json:"author_id"`
Description string `json:"description"`
State string `json:"state"`
Title string `json:"title"`
LastEditedAt string `json:"last_edit_at"`
LastEditedByID int `json:"last_edited_by_id"`
UpdatedAt string `json:"updated_at"`
UpdatedByID int `json:"updated_by_id"`
CreatedAt string `json:"created_at"`
ClosedAt string `json:"closed_at"`
DueDate *ISOTime `json:"due_date"`
URL string `json:"url"`
TimeEstimate int `json:"time_estimate"`
Confidential bool `json:"confidential"`
TotalTimeSpent int `json:"total_time_spent"`
HumanTotalTimeSpent int `json:"human_total_time_spent"`
HumanTimeEstimate int `json:"human_time_estimate"`
AssigneeIDs []int `json:"assignee_ids"`
AssigneeID int `json:"assignee_id"`
} `json:"issue"`
} }
// SnippetCommentEvent represents a comment on a snippet event. // SnippetCommentEvent represents a comment on a snippet event.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment