From 3f7f4852efaaa56a0dada832dc652a1fc8869ae7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 14 Aug 2016 03:32:24 -0700 Subject: #2246 fully support of webhooks for pull request --- cmd/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/serve.go b/cmd/serve.go index ccbddeacf2..a7503ca9b6 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -113,7 +113,7 @@ func handleUpdateTask(uuid string, user, repoUser *models.User, reponame string, // Ask for running deliver hook and test pull request tasks. reqURL := setting.LocalURL + repoUser.Name + "/" + reponame + "/tasks/trigger?branch=" + - strings.TrimPrefix(task.RefName, "refs/heads/") + "&secret=" + base.EncodeMD5(repoUser.Salt) + strings.TrimPrefix(task.RefName, "refs/heads/") + "&secret=" + base.EncodeMD5(repoUser.Salt) + "&pusher=" + com.ToStr(user.ID) log.GitLogger.Trace("Trigger task: %s", reqURL) resp, err := httplib.Head(reqURL).SetTLSClientConfig(&tls.Config{ -- cgit v1.2.3