Verified Commit a0065fe7 authored by Zubeen's avatar Zubeen 🤖 Committed by GitLab
Browse files

feat(group_milestones): add web_url field to GroupMilestone

Changelog: Improvements
parent 23eb0a84
Loading
Loading
Loading
Loading
+1 −0
Changes for group_milestones.go: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ type GroupMilestone struct {
	StartDate   *ISOTime   `json:"start_date"`
	DueDate     *ISOTime   `json:"due_date"`
	State       string     `json:"state"`
	WebURL      string     `json:"web_url"`
	UpdatedAt   *time.Time `json:"updated_at"`
	CreatedAt   *time.Time `json:"created_at"`
	Expired     *bool      `json:"expired"`
+4 −0
Changes for group_milestones_test.go: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ func TestGroupMilestonesService_ListGroupMilestones(t *testing.T) {
		Description: "Version",
		State:       "active",
		Expired:     new(false),
		WebURL:      "https://gitlab.com/groups/gitlab-org/-/milestones/42",
	}}

	gms, resp, err := client.GroupMilestones.ListGroupMilestones(5, nil, nil)
@@ -89,6 +90,7 @@ func TestGroupMilestonesService_GetGroupMilestone(t *testing.T) {
		Description: "Version",
		State:       "active",
		Expired:     new(false),
		WebURL:      "https://gitlab.com/groups/gitlab-org/-/milestones/42",
	}

	gm, resp, err := client.GroupMilestones.GetGroupMilestone(5, 12, nil, nil)
@@ -140,6 +142,7 @@ func TestGroupMilestonesService_CreateGroupMilestone(t *testing.T) {
		Description: "Version",
		State:       "active",
		Expired:     new(false),
		WebURL:      "https://gitlab.com/groups/gitlab-org/-/milestones/42",
	}

	gm, resp, err := client.GroupMilestones.CreateGroupMilestone(5, nil, nil)
@@ -191,6 +194,7 @@ func TestGroupMilestonesService_UpdateGroupMilestone(t *testing.T) {
		Description: "Version",
		State:       "active",
		Expired:     new(false),
		WebURL:      "https://gitlab.com/groups/gitlab-org/-/milestones/42",
	}

	gm, resp, err := client.GroupMilestones.UpdateGroupMilestone(5, 12, nil, nil)