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:
...@@ -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"`
......
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