Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
43d5ab2e
Commit
43d5ab2e
authored
Apr 14, 2019
by
Romain Maneschi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some minor fix for web hooks
parent
1e744e58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
5 deletions
+40
-5
event_types.go
event_types.go
+40
-5
No files found.
event_types.go
View file @
43d5ab2e
...
...
@@ -161,13 +161,21 @@ type IssueEvent struct {
Username
string
`json:"username"`
AvatarURL
string
`json:"avatar_url"`
}
`json:"assignee"`
Labels
[]
Label
`json:"labels"`
Assignees
[]
struct
{
Name
string
`json:"name"`
Username
string
`json:"username"`
AvatarURL
string
`json:"avatar_url"`
}
`json:"assignees"`
Labels
[]
Label
`json:"labels"`
Changes
struct
{
Labels
struct
{
Previous
[]
Label
`json:"previous"`
Current
[]
Label
`json:"current"`
}
`json:"labels"`
UpdatedByID
[]
int
`json:"updated_by_id"`
UpdatedByID
struct
{
Previous
[]
Label
`json:"previous"`
Current
[]
Label
`json:"current"`
}
`json:"updated_by_id"`
}
`json:"changes"`
}
...
...
@@ -407,7 +415,31 @@ type IssueCommentEvent struct {
StDiff
[]
*
Diff
`json:"st_diff"`
URL
string
`json:"url"`
}
`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.
...
...
@@ -540,7 +572,7 @@ type MergeEvent struct {
Username
string
`json:"username"`
AvatarURL
string
`json:"avatar_url"`
}
`json:"assignee"`
Labels
[]
Label
`json:"labels"`
Labels
[]
Label
`json:"labels"`
Changes
struct
{
AssigneeID
struct
{
Previous
int
`json:"previous"`
...
...
@@ -554,7 +586,10 @@ type MergeEvent struct {
Previous
[]
Label
`json:"previous"`
Current
[]
Label
`json:"current"`
}
`json:"labels"`
UpdatedByID
[]
int
`json:"updated_by_id"`
UpdatedByID
struct
{
Previous
[]
Label
`json:"previous"`
Current
[]
Label
`json:"current"`
}
`json:"updated_by_id"`
}
`json:"changes"`
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment