summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-25 23:27:25 +0800
committerGitHub <noreply@github.com>2016-12-25 23:27:25 +0800
commit4b7594d9fa0da67cbc8df74ee1711043168ebbbd (patch)
treeeed4cbedb522844a93645cc8e0d48d904b694ad1 /cmd
parentd4924d45d6d4e991240d207a834d8d6709781449 (diff)
downloadgitea-4b7594d9fa0da67cbc8df74ee1711043168ebbbd.tar.gz
gitea-4b7594d9fa0da67cbc8df74ee1711043168ebbbd.zip
Provide button to delete merged pull request (#441)
* provide button to delete merged pull request * golint fix
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 9776fdc11a..f6baf6ad4d 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -518,6 +518,7 @@ func runWeb(ctx *cli.Context) error {
}, context.RepoRef())
// m.Get("/branches", repo.Branches)
+ m.Post("/branches/:name/delete", reqSignIn, reqRepoWriter, repo.DeleteBranchPost)
m.Group("/wiki", func() {
m.Get("/?:page", repo.Wiki)