1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 08:23:48 +02:00

Fix incorrect drone branch for pull requests

Fixes #607
This commit is contained in:
Andrew Vos 2014-10-22 11:56:06 +01:00
parent 063f1f4830
commit 286d5fe94c

View File

@ -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(),