diff options
author | John Olheiser <john.olheiser@gmail.com> | 2020-09-11 09:48:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 10:48:39 -0400 |
commit | 26c4a049da178993e5ccddcb50e7edc70a6bde5d (patch) | |
tree | 494106117720ff3ad5f9e77a380c9397c3cfe10b /routers/routes | |
parent | dd1a651b5895cfdb8a141a56aa824ed4d082c41a (diff) | |
download | gitea-26c4a049da178993e5ccddcb50e7edc70a6bde5d.tar.gz gitea-26c4a049da178993e5ccddcb50e7edc70a6bde5d.zip |
Issue templates directory (#11450)
* Issue templates
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add some comments, appease the linter
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add docs and re-use dir candidates
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add default labels to issue templates
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Generate swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Suggested changes
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update issue.go
* Suggestions
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Extract metadata from legacy if possible
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/routes')
-rw-r--r-- | routers/routes/routes.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 779e8614b3..247835c062 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -723,8 +723,11 @@ func RegisterRoutes(m *macaron.Macaron) { // Grouping for those endpoints that do require authentication m.Group("/:username/:reponame", func() { m.Group("/issues", func() { - m.Combo("/new").Get(context.RepoRef(), repo.NewIssue). - Post(bindIgnErr(auth.CreateIssueForm{}), repo.NewIssuePost) + m.Group("/new", func() { + m.Combo("").Get(context.RepoRef(), repo.NewIssue). + Post(bindIgnErr(auth.CreateIssueForm{}), repo.NewIssuePost) + m.Get("/choose", context.RepoRef(), repo.NewIssueChooseTemplate) + }) }, context.RepoMustNotBeArchived(), reqRepoIssueReader) // FIXME: should use different URLs but mostly same logic for comments of issue and pull reuqest. // So they can apply their own enable/disable logic on routers. |