diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2020-01-08 17:10:34 -0600 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-08 23:10:34 +0000 |
commit | 5b2d9333f1d06a15f11906b39c4867cc5d1c9448 (patch) | |
tree | 76081204412a1f909769c6ee2d1e9c5a58b04cd9 /models | |
parent | 14a96874442a13bb212affb13a585f0536d89c2a (diff) | |
download | gitea-5b2d9333f1d06a15f11906b39c4867cc5d1c9448.tar.gz gitea-5b2d9333f1d06a15f11906b39c4867cc5d1c9448.zip |
Add HTML URL to API Issues (#9654)
* Add HTML URL to API Issues
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go index 485be4baef..3986aeee15 100644 --- a/models/issue.go +++ b/models/issue.go @@ -381,6 +381,7 @@ func (issue *Issue) apiFormat(e Engine) *api.Issue { apiIssue := &api.Issue{ ID: issue.ID, URL: issue.APIURL(), + HTMLURL: issue.HTMLURL(), Index: issue.Index, Poster: issue.Poster.APIFormat(), Title: issue.Title, |