summaryrefslogtreecommitdiffstats
path: root/routers/routes
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-11-29 09:46:30 +0800
committerGitHub <noreply@github.com>2018-11-29 09:46:30 +0800
commit2dc805c0c6e85099f3f346ba78f3a52abf032ce4 (patch)
tree2adeae8beaa207c80908914d3f6e48d82e2ae21d /routers/routes
parentd5d847e5c4f0cf1470fc51f96d57917e4d9f5d83 (diff)
downloadgitea-2dc805c0c6e85099f3f346ba78f3a52abf032ce4.tar.gz
gitea-2dc805c0c6e85099f3f346ba78f3a52abf032ce4.zip
Milestone issues and pull requests (#5293)
* add milestone issues and pulls page instead of redirecting issues page * add milestone when creating issue from milestone page * refactor to merge similiar codes as a new function issues * remove milestone info on milestone issues list * fix missing params
Diffstat (limited to 'routers/routes')
-rw-r--r--routers/routes/routes.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index eb5841f593..5d9a6b31f0 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -578,7 +578,9 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Get("/:id/:action", repo.ChangeMilestonStatus)
m.Post("/delete", repo.DeleteMilestone)
}, reqRepoIssuesOrPullsWriter, context.RepoRef())
-
+ m.Group("/milestone", func() {
+ m.Get("/:id", repo.MilestoneIssuesAndPulls)
+ }, reqRepoIssuesOrPullsWriter, context.RepoRef())
m.Combo("/compare/*", reqRepoCodeReader, reqRepoPullsReader, repo.MustAllowPulls, repo.SetEditorconfigIfExists).
Get(repo.SetDiffViewStyle, repo.CompareAndPullRequest).
Post(bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost)