summaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-04-18 09:47:15 -0500
committerGitHub <noreply@github.com>2020-04-18 11:47:15 -0300
commit4f597b1866954ff94999a52af1a41fed06f0143e (patch)
tree0f260a237d33e55b259bb5cf5671c67135799d79 /modules/structs
parent1b86f174ce99b579df35c32e800551b1fd1df807 (diff)
downloadgitea-4f597b1866954ff94999a52af1a41fed06f0143e.tar.gz
gitea-4f597b1866954ff94999a52af1a41fed06f0143e.zip
Add single release page and latest redirect (#11102)
* Add single release and latest release routes Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update API and move latest search to models Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'modules/structs')
-rw-r--r--modules/structs/release.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/structs/release.go b/modules/structs/release.go
index b7575af39a..38ce60bbe2 100644
--- a/modules/structs/release.go
+++ b/modules/structs/release.go
@@ -16,6 +16,7 @@ type Release struct {
Title string `json:"name"`
Note string `json:"body"`
URL string `json:"url"`
+ HTMLURL string `json:"html_url"`
TarURL string `json:"tarball_url"`
ZipURL string `json:"zipball_url"`
IsDraft bool `json:"draft"`