aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTanapol Nearunchorn <tanapoln@wongnai.com>2016-07-02 02:10:30 +0700
committerTanapol Nearunchorn <tanapoln@wongnai.com>2016-09-02 10:12:21 +0700
commit73fedc727538381d4e1048ee03be6b45e977a076 (patch)
tree27548e943e4ba831f24097272a8c099778d44336 /cmd
parentb3d9ca4ccd7c4353db0971b61bbcbffd126cb61d (diff)
provide button to delete merged pull request
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 cc4eb2aa..496c4908 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -543,6 +543,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)