Browse Source

lib/upgrade: Add html_url release field

Jakob Borg 6 years ago
parent
commit
6b570ee8dc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/upgrade/upgrade_common.go

+ 4 - 0
lib/upgrade/upgrade_common.go

@@ -21,6 +21,10 @@ type Release struct {
 	Tag        string  `json:"tag_name"`
 	Prerelease bool    `json:"prerelease"`
 	Assets     []Asset `json:"assets"`
+
+	// The HTML URL is needed for human readable links in the output created
+	// by cmd/stupgrades.
+	HTMLURL string `json:"html_url"`
 }
 
 type Asset struct {