Verified Commit 97949418 authored by Patrick Rice's avatar Patrick Rice 🌆 Committed by GitLab
Browse files

Merge branch '2283-issue-event-object-attributes-start-date' into 'main'

Add StartDate to IssueEventObjectAttributes

Closes #2283

See merge request !2972
parents 8d0e6d79 a821c287
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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"`
+4 −0
Original line number Diff line number Diff line
@@ -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",
@@ -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",
+1 −0
Original line number Diff line number Diff line
@@ -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,