Verified Commit 4e3accce authored by Cesar Hinojosa's avatar Cesar Hinojosa Committed by GitLab
Browse files

fix(event_webhook_types): Add StartDate to IssueCommentEventIssue struct

Changelog: Improvements
parent 560abac8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -323,6 +323,7 @@ type IssueCommentEventIssue struct {
	CreatedAt           string        `json:"created_at"`
	ClosedAt            string        `json:"closed_at"`
	DueDate             *ISOTime      `json:"due_date"`
	StartDate           *ISOTime      `json:"start_date"`
	URL                 string        `json:"url"`
	TimeEstimate        int64         `json:"time_estimate"`
	Confidential        bool          `json:"confidential"`
+4 −0
Original line number Diff line number Diff line
@@ -400,6 +400,9 @@ func TestIssueCommentEventUnmarshal(t *testing.T) {
	err := json.Unmarshal(jsonObject, &event)
	require.NoError(t, err)

	startDate, err := ParseISOTime("2026-08-01")
	require.NoError(t, err)

	expectedEvent := &IssueCommentEvent{
		ObjectKind: "note",
		EventType:  "note",
@@ -456,6 +459,7 @@ func TestIssueCommentEventUnmarshal(t *testing.T) {
			State:               "closed",
			CreatedAt:           "2016-01-04T15:31:46.176Z",
			UpdatedAt:           "2016-01-04T15:31:46.176Z",
			StartDate:           &startDate,
			TimeEstimate:        3600,
			TotalTimeSpent:      600,
			HumanTotalTimeSpent: "10m",
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@
    "project_id": 5,
    "created_at": "2016-01-04T15:31:46.176Z",
    "updated_at": "2016-01-04T15:31:46.176Z",
    "start_date": "2026-08-01",
    "position": 0,
    "branch_name": null,
    "description": "test issue",