summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-01-19 14:43:38 +0800
committerGitHub <noreply@github.com>2020-01-19 14:43:38 +0800
commitf540d0ac87fe776e71c5caeba20049f46a667efe (patch)
tree71c115e7b4081ac013c92cfa4e8ad88c43e9dbaa /templates
parent0641965860bc5ebcb1c85067976099986d0136c6 (diff)
downloadgitea-f540d0ac87fe776e71c5caeba20049f46a667efe.tar.gz
gitea-f540d0ac87fe776e71c5caeba20049f46a667efe.zip
Fix issues/pulls dependencies problems (#9842)
* Fix issues/pulls dependencies problems * fix swagger and api param name * fix js
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl1
-rw-r--r--templates/swagger/v1_json.tmpl6
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index dd58e8b216..02564643cc 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -428,6 +428,7 @@
<input type="hidden" id="repolink" value="{{$.RepoRelPath}}">
<input type="hidden" id="repoId" value="{{.Repository.ID}}">
<input type="hidden" id="crossRepoSearch" value="{{.AllowCrossRepositoryDependencies}}">
+ <input type="hidden" id="type" value="{{.IssueType}}">
<!-- I know, there is probably a better way to do this -->
<input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/>
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 8ff4597b2e..95932d9e02 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -1397,6 +1397,12 @@
"description": "repository to prioritize in the results",
"name": "priority_repo_id",
"in": "query"
+ },
+ {
+ "type": "string",
+ "description": "filter by type (issues / pulls) if set",
+ "name": "type",
+ "in": "query"
}
],
"responses": {