Loading event_webhook_types.go +1 −0 Original line number Diff line number Diff line Loading @@ -388,6 +388,7 @@ type IssueEventObjectAttributes struct { StateID StateID `json:"state_id"` Confidential bool `json:"confidential"` DiscussionLocked bool `json:"discussion_locked"` StartDate *ISOTime `json:"start_date"` DueDate *ISOTime `json:"due_date"` MovedToID int64 `json:"moved_to_id"` DuplicatedToID int64 `json:"duplicated_to_id"` Loading event_webhook_types_test.go +4 −0 Original line number Diff line number Diff line Loading @@ -498,6 +498,9 @@ func TestIssueEventUnmarshal(t *testing.T) { err := json.Unmarshal(jsonObject, &event) require.NoError(t, err) startDate, err := ParseISOTime("2013-12-01") require.NoError(t, err) apiLabel := &EventLabel{ ID: 206, Title: "API", Loading Loading @@ -554,6 +557,7 @@ func TestIssueEventUnmarshal(t *testing.T) { Description: "Create new API for manipulations with repository", StateID: StateIDOpen, DiscussionLocked: true, StartDate: &startDate, Weight: 10, IID: 23, URL: "http://example.com/diaspora/issues/23", Loading testdata/webhooks/issue.json +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ "state_id": 1, "confidential": false, "discussion_locked": true, "start_date": "2013-12-01", "due_date": null, "moved_to_id": null, "duplicated_to_id": null, Loading Loading
event_webhook_types.go +1 −0 Original line number Diff line number Diff line Loading @@ -388,6 +388,7 @@ type IssueEventObjectAttributes struct { StateID StateID `json:"state_id"` Confidential bool `json:"confidential"` DiscussionLocked bool `json:"discussion_locked"` StartDate *ISOTime `json:"start_date"` DueDate *ISOTime `json:"due_date"` MovedToID int64 `json:"moved_to_id"` DuplicatedToID int64 `json:"duplicated_to_id"` Loading
event_webhook_types_test.go +4 −0 Original line number Diff line number Diff line Loading @@ -498,6 +498,9 @@ func TestIssueEventUnmarshal(t *testing.T) { err := json.Unmarshal(jsonObject, &event) require.NoError(t, err) startDate, err := ParseISOTime("2013-12-01") require.NoError(t, err) apiLabel := &EventLabel{ ID: 206, Title: "API", Loading Loading @@ -554,6 +557,7 @@ func TestIssueEventUnmarshal(t *testing.T) { Description: "Create new API for manipulations with repository", StateID: StateIDOpen, DiscussionLocked: true, StartDate: &startDate, Weight: 10, IID: 23, URL: "http://example.com/diaspora/issues/23", Loading
testdata/webhooks/issue.json +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ "state_id": 1, "confidential": false, "discussion_locked": true, "start_date": "2013-12-01", "due_date": null, "moved_to_id": null, "duplicated_to_id": null, Loading