Skip to content

Commit

Permalink
fixes wrong after field in webhook payload (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkcsoft authored May 19, 2017
2 parents 281a038 + 407fbfa commit 977dcf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (pr *PullRequest) Merge(doer *User, baseGitRepo *git.Repository) (err error
return fmt.Errorf("git push: %s", stderr)
}

pr.MergedCommitID, err = headGitRepo.GetBranchCommitID(pr.HeadBranch)
pr.MergedCommitID, err = headGitRepo.GetBranchCommitID(pr.BaseBranch)
if err != nil {
return fmt.Errorf("GetBranchCommit: %v", err)
}
Expand Down

0 comments on commit 977dcf9

Please sign in to comment.