diff options
author | Unknwon <u@gogs.io> | 2016-02-17 15:05:07 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-17 15:05:07 -0500 |
commit | d5ca913b2f78ea68f41d9f377a3bf4f37bc8ab0c (patch) | |
tree | 918cac1addb75b7273f31c177eeba4fcc94cd1d5 /routers/repo/webhook.go | |
parent | 3af1d3c5810bd94b2f3f80831f2be3a97fc1ceb1 (diff) | |
download | gitea-d5ca913b2f78ea68f41d9f377a3bf4f37bc8ab0c.tar.gz gitea-d5ca913b2f78ea68f41d9f377a3bf4f37bc8ab0c.zip |
#2639 add branch prefix for test webhook
Diffstat (limited to 'routers/repo/webhook.go')
-rw-r--r-- | routers/repo/webhook.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index a1b3633043..6d271a4fe0 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -12,6 +12,7 @@ import ( "github.com/Unknwon/com" + git "github.com/gogits/git-module" api "github.com/gogits/go-gogs-client" "github.com/gogits/gogs/models" @@ -341,7 +342,7 @@ func SlackHooksEditPost(ctx *middleware.Context, form auth.NewSlackHookForm) { func TestWebhook(ctx *middleware.Context) { p := &api.PushPayload{ - Ref: ctx.Repo.Repository.DefaultBranch, + Ref: git.BRANCH_PREFIX + ctx.Repo.Repository.DefaultBranch, Before: ctx.Repo.CommitID, After: ctx.Repo.CommitID, Commits: []*api.PayloadCommit{ |