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
4baaa27b
Unverified
Commit
4baaa27b
authored
Apr 30, 2019
by
Sander van Harmelen
Committed by
GitHub
Apr 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #608 from manland/improveWebHook
some minor fix for web hooks
parents
1e744e58
6f64cf53
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
event_types.go
event_types.go
+31
-1
No files found.
event_types.go
View file @
4baaa27b
...
@@ -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.
...
...
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