From 3b020f75f6aa986085b717405e20a3b98db21a10 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 19 Aug 2015 15:07:37 -0700 Subject: [PATCH] fix github merge ref string creation --- pkg/remote/builtin/github/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/remote/builtin/github/github.go b/pkg/remote/builtin/github/github.go index 5423178cf..9f8ea00ba 100644 --- a/pkg/remote/builtin/github/github.go +++ b/pkg/remote/builtin/github/github.go @@ -360,7 +360,7 @@ func (g *GitHub) pullRequest(r *http.Request) (*common.Hook, error) { c := &common.Commit{} c.Sha = *hook.PullRequest.Head.SHA c.Ref = *hook.PullRequest.Head.Ref - c.Ref = fmt.Sprintf("refs/pull/%s/merge", *hook.PullRequest.Number) + c.Ref = fmt.Sprintf("refs/pull/%d/merge", *hook.PullRequest.Number) c.Branch = *hook.PullRequest.Head.Ref c.Timestamp = time.Now().UTC().Format("2006-01-02 15:04:05.000000000 +0000 MST") c.Remote = *hook.PullRequest.Head.Repo.CloneURL