We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71c23f7 + 3ad4606 commit 217ec83Copy full SHA for 217ec83
scm/driver/bitbucket/testdata/webhooks/push.json.golden
@@ -1,5 +1,6 @@
1
{
2
"Ref": "refs/heads/master",
3
+ "Before": "40e7580cf11311d84a6e5e97e2cbba6df1675750",
4
"Repo": {
5
"ID": "{bc771cbf-829e-4c4b-b71f-a0eb3ac2b860}",
6
"Namespace": "brydzewski",
scm/driver/bitbucket/webhook.go
@@ -494,6 +494,7 @@ func convertPushHook(src *pushHook) *scm.PushHook {
494
namespace, name := scm.Split(src.Repository.FullName)
495
dst := &scm.PushHook{
496
Ref: scm.ExpandRef(change.New.Name, "refs/heads/"),
497
+ Before: change.Old.Target.Hash,
498
Commit: scm.Commit{
499
Sha: change.New.Target.Hash,
500
Message: change.New.Target.Message,
0 commit comments