mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	[API] expose RepoOwner on Issue responce (#10126)
* add RepoOwner on issue api responce * CI.restart()
This commit is contained in:
		@@ -398,6 +398,7 @@ func (issue *Issue) apiFormat(e Engine) *api.Issue {
 | 
				
			|||||||
	apiIssue.Repo = &api.RepositoryMeta{
 | 
						apiIssue.Repo = &api.RepositoryMeta{
 | 
				
			||||||
		ID:       issue.Repo.ID,
 | 
							ID:       issue.Repo.ID,
 | 
				
			||||||
		Name:     issue.Repo.Name,
 | 
							Name:     issue.Repo.Name,
 | 
				
			||||||
 | 
							Owner:    issue.Repo.OwnerName,
 | 
				
			||||||
		FullName: issue.Repo.FullName(),
 | 
							FullName: issue.Repo.FullName(),
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,6 +30,7 @@ type PullRequestMeta struct {
 | 
				
			|||||||
type RepositoryMeta struct {
 | 
					type RepositoryMeta struct {
 | 
				
			||||||
	ID       int64  `json:"id"`
 | 
						ID       int64  `json:"id"`
 | 
				
			||||||
	Name     string `json:"name"`
 | 
						Name     string `json:"name"`
 | 
				
			||||||
 | 
						Owner    string `json:"owner"`
 | 
				
			||||||
	FullName string `json:"full_name"`
 | 
						FullName string `json:"full_name"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12350,6 +12350,10 @@
 | 
				
			|||||||
        "name": {
 | 
					        "name": {
 | 
				
			||||||
          "type": "string",
 | 
					          "type": "string",
 | 
				
			||||||
          "x-go-name": "Name"
 | 
					          "x-go-name": "Name"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "owner": {
 | 
				
			||||||
 | 
					          "type": "string",
 | 
				
			||||||
 | 
					          "x-go-name": "Owner"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "x-go-package": "code.gitea.io/gitea/modules/structs"
 | 
					      "x-go-package": "code.gitea.io/gitea/modules/structs"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user