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
e3e5e785
Commit
e3e5e785
authored
Sep 29, 2016
by
Sander van Harmelen
Committed by
GitHub
Sep 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around Gitlab issue #21468 (#74)
https://gitlab.com/gitlab-org/gitlab-ce/issues/21468
parent
aa181b2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
events.go
events.go
+17
-19
No files found.
events.go
View file @
e3e5e785
...
...
@@ -16,8 +16,6 @@
package
gitlab
import
"time"
// PushEvent represents a push event.
//
// GitLab API docs:
...
...
@@ -69,21 +67,21 @@ type IssueEvent struct {
Project
*
Project
`json:"project"`
Repository
*
Repository
`json:"repository"`
ObjectAttributes
struct
{
ID
int
`json:"id"`
Title
string
`json:"title"`
AssigneeID
int
`json:"assignee_id"`
AuthorID
int
`json:"author_id"`
ProjectID
int
`json:"project_id"`
CreatedAt
*
time
.
Time
`json:"created_at"`
UpdatedAt
*
time
.
Time
`json:"updated_at"`
Position
int
`json:"position"`
BranchName
string
`json:"branch_name"`
Description
string
`json:"description"`
MilestoneID
int
`json:"milestone_id"`
State
string
`json:"state"`
Iid
int
`json:"iid"`
URL
string
`json:"url"`
Action
string
`json:"action"`
ID
int
`json:"id"`
Title
string
`json:"title"`
AssigneeID
int
`json:"assignee_id"`
AuthorID
int
`json:"author_id"`
ProjectID
int
`json:"project_id"`
CreatedAt
string
`json:"created_at"`
// Should be *time.Time (see Gitlab issue #21468)
UpdatedAt
string
`json:"updated_at"`
// Should be *time.Time (see Gitlab issue #21468)
Position
int
`json:"position"`
BranchName
string
`json:"branch_name"`
Description
string
`json:"description"`
MilestoneID
int
`json:"milestone_id"`
State
string
`json:"state"`
Iid
int
`json:"iid"`
URL
string
`json:"url"`
Action
string
`json:"action"`
}
`json:"object_attributes"`
Assignee
struct
{
Name
string
`json:"name"`
...
...
@@ -231,8 +229,8 @@ type MergeEvent struct {
AuthorID
int
`json:"author_id"`
AssigneeID
int
`json:"assignee_id"`
Title
string
`json:"title"`
CreatedAt
*
time
.
Time
`json:"created_at"`
UpdatedAt
*
time
.
Time
`json:"updated_at"`
CreatedAt
string
`json:"created_at"`
// Should be *time.Time (see Gitlab issue #21468)
UpdatedAt
string
`json:"updated_at"`
// Should be *time.Time (see Gitlab issue #21468)
StCommits
[]
*
Commit
`json:"st_commits"`
StDiffs
[]
*
Diff
`json:"st_diffs"`
MilestoneID
int
`json:"milestone_id"`
...
...
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