summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-01 19:07:02 -0400
committerUnknwon <u@gogs.io>2015-09-01 19:07:02 -0400
commit8c046073a891e3a192794869628763ef072002eb (patch)
treea5de325078531c330da64f8361d43184fee894d3 /cmd
parent63fecac537298109253bc00c256336e942f73481 (diff)
downloadgitea-8c046073a891e3a192794869628763ef072002eb.tar.gz
gitea-8c046073a891e3a192794869628763ef072002eb.zip
work on PR conversation
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index cf681fbcb3..d89504e99e 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -513,13 +513,14 @@ func runWeb(ctx *cli.Context) {
m.Post("/edit/:tagname", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost)
}, reqRepoAdmin, middleware.RepoRef())
- m.Combo("/compare/*").Get(repo.CompareAndPullRequest)
+ m.Combo("/compare/*").Get(repo.CompareAndPullRequest).
+ Post(bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost)
}, reqSignIn, middleware.RepoAssignment(true))
m.Group("/:username/:reponame", func() {
m.Get("/releases", middleware.RepoRef(), repo.Releases)
m.Get("/issues", repo.RetrieveLabels, repo.Issues)
- m.Get("/issues/:index", repo.ViewIssue)
+ m.Get("/:type(issues|pulls)/:index", repo.ViewIssue)
m.Get("/labels/", repo.RetrieveLabels, repo.Labels)
m.Get("/milestones", repo.Milestones)
m.Get("/pulls", repo.Pulls)