Skip to content

Commit 217ec83

Browse files
committed
Merge remote-tracking branch 'origin'
2 parents 71c23f7 + 3ad4606 commit 217ec83

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

scm/driver/bitbucket/testdata/webhooks/push.json.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"Ref": "refs/heads/master",
3+
"Before": "40e7580cf11311d84a6e5e97e2cbba6df1675750",
34
"Repo": {
45
"ID": "{bc771cbf-829e-4c4b-b71f-a0eb3ac2b860}",
56
"Namespace": "brydzewski",

scm/driver/bitbucket/webhook.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ func convertPushHook(src *pushHook) *scm.PushHook {
494494
namespace, name := scm.Split(src.Repository.FullName)
495495
dst := &scm.PushHook{
496496
Ref: scm.ExpandRef(change.New.Name, "refs/heads/"),
497+
Before: change.Old.Target.Hash,
497498
Commit: scm.Commit{
498499
Sha: change.New.Target.Hash,
499500
Message: change.New.Target.Message,

0 commit comments

Comments
 (0)