[API] expose RepoOwner on Issue responce (#10126)

* add RepoOwner on issue api responce

* CI.restart()
This commit is contained in:
6543 2020-02-04 06:05:17 +01:00 committed by GitHub
parent 3ff95cef60
commit b3c72a7c4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -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(),
}