summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-02-04 06:05:17 +0100
committerGitHub <noreply@github.com>2020-02-04 00:05:17 -0500
commitb3c72a7c4a935e805b87ff2e1911429628ace7c5 (patch)
tree1683763de1f978a8e4576dd76841a16b11b0d750 /models/issue.go
parent3ff95cef606fad166527b092cb063081e3b3b84e (diff)
downloadgitea-b3c72a7c4a935e805b87ff2e1911429628ace7c5.tar.gz
gitea-b3c72a7c4a935e805b87ff2e1911429628ace7c5.zip
[API] expose RepoOwner on Issue responce (#10126)
* add RepoOwner on issue api responce * CI.restart()
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go
index c0be987ac9..52d22f1509 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -398,6 +398,7 @@ func (issue *Issue) apiFormat(e Engine) *api.Issue {
apiIssue.Repo = &api.RepositoryMeta{
ID: issue.Repo.ID,
Name: issue.Repo.Name,
+ Owner: issue.Repo.OwnerName,
FullName: issue.Repo.FullName(),
}