Commit e3e5e785 authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Work around Gitlab issue #21468 (#74)

https://gitlab.com/gitlab-org/gitlab-ce/issues/21468
parent aa181b2a
...@@ -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:
...@@ -74,8 +72,8 @@ type IssueEvent struct { ...@@ -74,8 +72,8 @@ type IssueEvent struct {
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"`
...@@ -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"`
......
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