This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
[API] expose RepoOwner on Issue responce (
#10126
)
* add RepoOwner on issue api responce * CI.restart()
tags/v1.12.0-dev
6543
GitHub
5 years ago
parent
9fb6d2c0da
commit
fa3066094d
3 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
models/issue.go
+1
-0
modules/structs/issue.go
+4
-0
templates/swagger/v1_json.tmpl
+ 1
- 0
models/issue.go
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(),
}
+ 1
- 0
modules/structs/issue.go
View File
@@ -30,6 +30,7 @@ type PullRequestMeta struct {
type RepositoryMeta struct {
ID int64 `json:"id"`
Name string `json:"name"`
Owner string `json:"owner"`
FullName string `json:"full_name"`
}
+ 4
- 0
templates/swagger/v1_json.tmpl
View File
@@ -12350,6 +12350,10 @@
"name": {
"type": "string",
"x-go-name": "Name"
},
"owner": {
"type": "string",
"x-go-name": "Owner"
}
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
Write
Preview
Loading…
Cancel
Save