File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,10 @@ func SearchIssues(ctx *context.APIContext) {
51
51
// description: repository to prioritize in the results
52
52
// type: integer
53
53
// format: int64
54
- // - name: tp
54
+ // - name: type
55
55
// in: query
56
- // description: both issues and pull requests or one of them, could be prs, issues or blank
57
- // type: integer
58
- // format: int64
56
+ // description: filter by type (issues / pulls) if set
57
+ // type: string
59
58
// responses:
60
59
// "200":
61
60
// "$ref": "#/responses/IssueList"
@@ -134,7 +133,7 @@ func SearchIssues(ctx *context.APIContext) {
134
133
}
135
134
136
135
var isPull util.OptionalBool
137
- switch ctx .Query ("tp " ) {
136
+ switch ctx .Query ("type " ) {
138
137
case "pulls" :
139
138
isPull = util .OptionalBoolTrue
140
139
case "issues" :
Original file line number Diff line number Diff line change 428
428
<input type="hidden" id="repolink" value="{{$.RepoRelPath}}">
429
429
<input type="hidden" id="repoId" value="{{.Repository.ID}}">
430
430
<input type="hidden" id="crossRepoSearch" value="{{.AllowCrossRepositoryDependencies}}">
431
- <input type="hidden" id="tp " value="{{.IssueType}}">
431
+ <input type="hidden" id="type " value="{{.IssueType}}">
432
432
<!-- I know, there is probably a better way to do this -->
433
433
<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/>
434
434
Original file line number Diff line number Diff line change 1397
1397
"description": "repository to prioritize in the results",
1398
1398
"name": "priority_repo_id",
1399
1399
"in": "query"
1400
+ },
1401
+ {
1402
+ "type": "string",
1403
+ "description": "filter by type (issues / pulls) if set",
1404
+ "name": "type",
1405
+ "in": "query"
1400
1406
}
1401
1407
],
1402
1408
"responses": {
You can’t perform that action at this time.
0 commit comments