From 18969b05a0d2c9c476e5bde140f3876d83a7159e Mon Sep 17 00:00:00 2001 From: David Url Date: Sun, 28 Apr 2019 19:10:41 +0200 Subject: [PATCH] Unify FixVersion and Version types The FixVersion type was missing some fields. Now it is a complete copy of the more complete Version struct, with the only difference that the bool fields are pointers (for compatibility reasons). Fixes #208 --- issue.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/issue.go b/issue.go index 9e21fba..f52072d 100644 --- a/issue.go +++ b/issue.go @@ -464,14 +464,16 @@ type Comment struct { // FixVersion represents a software release in which an issue is fixed. type FixVersion struct { - Archived *bool `json:"archived,omitempty" structs:"archived,omitempty"` + Self string `json:"self,omitempty" structs:"self,omitempty"` ID string `json:"id,omitempty" structs:"id,omitempty"` Name string `json:"name,omitempty" structs:"name,omitempty"` - ProjectID int `json:"projectId,omitempty" structs:"projectId,omitempty"` - ReleaseDate string `json:"releaseDate,omitempty" structs:"releaseDate,omitempty"` + Description string `json:"description,omitempty" structs:"name,omitempty"` + Archived *bool `json:"archived,omitempty" structs:"archived,omitempty"` Released *bool `json:"released,omitempty" structs:"released,omitempty"` - Self string `json:"self,omitempty" structs:"self,omitempty"` + ReleaseDate string `json:"releaseDate,omitempty" structs:"releaseDate,omitempty"` UserReleaseDate string `json:"userReleaseDate,omitempty" structs:"userReleaseDate,omitempty"` + ProjectID int `json:"projectId,omitempty" structs:"projectId,omitempty"` // Unlike other IDs, this is returned as a number + StartDate string `json:"startDate,omitempty" structs:"startDate,omitempty"` } // CommentVisibility represents he visibility of a comment.