@@ -11,12 +11,16 @@ export default class CherryPick {
1111 constructor ( prid , dir , cli , {
1212 owner,
1313 repo,
14+ upstream,
15+ gpgSign,
1416 lint,
1517 includeCVE
1618 } = { } ) {
1719 this . prid = prid ;
1820 this . cli = cli ;
1921 this . dir = dir ;
22+ this . upstream = upstream ;
23+ this . gpgSign = gpgSign ;
2024 this . options = { owner, repo, lint, includeCVE } ;
2125 }
2226
@@ -88,14 +92,15 @@ export default class CherryPick {
8892 } else if ( cleanLint === LINT_RESULTS . SUCCESS ) {
8993 cli . ok ( 'Lint passed cleanly' ) ;
9094 }
91- return this . amend ( metadata . metadata , commitInfo ) ;
95+ this . metadata = metadata . metadata ;
96+ return this . amend ( commitInfo ) ;
9297 } catch ( e ) {
9398 cli . error ( e . message ) ;
9499 return false ;
95100 }
96101 }
97102
98- async amend ( metadata , commitInfo ) {
103+ async amend ( commitInfo ) {
99104 const { cli } = this ;
100105 const subjects = await runAsync ( 'git' ,
101106 [ 'log' , '--pretty=format:%s' , `${ commitInfo . base } ..${ commitInfo . head } ` ] ,
@@ -116,7 +121,7 @@ export default class CherryPick {
116121 await runAsync ( 'git' , [ 'commit' , '--amend' , '--no-edit' ] ) ;
117122 }
118123
119- return LandingSession . prototype . amend . call ( this , metadata ) ;
124+ return LandingSession . prototype . amend . call ( this ) ;
120125 }
121126
122127 readyToAmend ( ) {
0 commit comments