File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,8 @@ class BitbucketScm extends Scm {
296296 + `@${ link . hostname } ${ link . pathname } .git` ;
297297 parsed . branch = hoek . reach ( changes [ 0 ] , 'new.name' ) ;
298298 parsed . sha = hoek . reach ( changes [ 0 ] , 'new.target.hash' ) ;
299+ parsed . lastCommitMessage = hoek . reach ( changes [ 0 ] , 'new.target.message' ,
300+ { default : '' } ) ;
299301
300302 return Promise . resolve ( parsed ) ;
301303 }
Original file line number Diff line number Diff line change @@ -314,6 +314,7 @@ describe('index', function () {
314314 checkoutUrl : 'https://batman@bitbucket.org/batman/test.git' ,
315315 branch : 'stuff' ,
316316 sha : '9ff49b2d1437567cad2b5fed7a0706472131e927' ,
317+ lastCommitMessage : 'testpayload\n' ,
317318 hookId : '1e8d4e8e-5fcf-4624-b091-b10bd6ecaf5e'
318319 } ;
319320 const headers = {
You can’t perform that action at this time.
0 commit comments