From 286d5fe94ce60a4e86030829f810122b548c75ae Mon Sep 17 00:00:00 2001 From: Andrew Vos Date: Wed, 22 Oct 2014 11:56:06 +0100 Subject: [PATCH] Fix incorrect drone branch for pull requests Fixes #607 --- plugin/remote/github/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/remote/github/github.go b/plugin/remote/github/github.go index 63c2c8e4e..6e7981273 100644 --- a/plugin/remote/github/github.go +++ b/plugin/remote/github/github.go @@ -277,7 +277,7 @@ func (r *GitHub) ParsePullRequestHook(req *http.Request) (*model.Hook, error) { Owner: data.Repo.Owner.Login, Repo: data.Repo.Name, Sha: data.PullRequest.Head.Sha, - Branch: data.PullRequest.Base.Ref, + Branch: data.PullRequest.Head.Ref, Author: data.PullRequest.User.Login, Gravatar: data.PullRequest.User.GravatarId, Timestamp: time.Now().UTC().String(),