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 @@
...
@@ -16,8 +16,6 @@
package
gitlab
package
gitlab
import
"time"
// PushEvent represents a push event.
// PushEvent represents a push event.
//
//
// GitLab API docs:
// GitLab API docs:
...
@@ -69,21 +67,21 @@ type IssueEvent struct {
...
@@ -69,21 +67,21 @@ type IssueEvent struct {
Project
*
Project
`json:"project"`
Project
*
Project
`json:"project"`
Repository
*
Repository
`json:"repository"`
Repository
*
Repository
`json:"repository"`
ObjectAttributes
struct
{
ObjectAttributes
struct
{
ID
int
`json:"id"`
ID
int
`json:"id"`
Title
string
`json:"title"`
Title
string
`json:"title"`
AssigneeID
int
`json:"assignee_id"`
AssigneeID
int
`json:"assignee_id"`
AuthorID
int
`json:"author_id"`
AuthorID
int
`json:"author_id"`
ProjectID
int
`json:"project_id"`
ProjectID
int
`json:"project_id"`
CreatedAt
*
time
.
Time
`json:"created_at"`
CreatedAt
string
`json:"created_at"`
// Should be *time.Time (see Gitlab issue #21468)
UpdatedAt
*
time
.
Time
`json:"updated_at"`
UpdatedAt
string
`json:"updated_at"`
// Should be *time.Time (see Gitlab issue #21468)
Position
int
`json:"position"`
Position
int
`json:"position"`
BranchName
string
`json:"branch_name"`
BranchName
string
`json:"branch_name"`
Description
string
`json:"description"`
Description
string
`json:"description"`
MilestoneID
int
`json:"milestone_id"`
MilestoneID
int
`json:"milestone_id"`
State
string
`json:"state"`
State
string
`json:"state"`
Iid
int
`json:"iid"`
Iid
int
`json:"iid"`
URL
string
`json:"url"`
URL
string
`json:"url"`
Action
string
`json:"action"`
Action
string
`json:"action"`
}
`json:"object_attributes"`
}
`json:"object_attributes"`
Assignee
struct
{
Assignee
struct
{
Name
string
`json:"name"`
Name
string
`json:"name"`
...
@@ -231,8 +229,8 @@ type MergeEvent struct {
...
@@ -231,8 +229,8 @@ type MergeEvent struct {
AuthorID
int
`json:"author_id"`
AuthorID
int
`json:"author_id"`
AssigneeID
int
`json:"assignee_id"`
AssigneeID
int
`json:"assignee_id"`
Title
string
`json:"title"`
Title
string
`json:"title"`
CreatedAt
*
time
.
Time
`json:"created_at"`
CreatedAt
string
`json:"created_at"`
// Should be *time.Time (see Gitlab issue #21468)
UpdatedAt
*
time
.
Time
`json:"updated_at"`
UpdatedAt
string
`json:"updated_at"`
// Should be *time.Time (see Gitlab issue #21468)
StCommits
[]
*
Commit
`json:"st_commits"`
StCommits
[]
*
Commit
`json:"st_commits"`
StDiffs
[]
*
Diff
`json:"st_diffs"`
StDiffs
[]
*
Diff
`json:"st_diffs"`
MilestoneID
int
`json:"milestone_id"`
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