@@ -11,12 +11,16 @@ export default class CherryPick {
11
11
constructor ( prid , dir , cli , {
12
12
owner,
13
13
repo,
14
+ upstream,
15
+ gpgSign,
14
16
lint,
15
17
includeCVE
16
18
} = { } ) {
17
19
this . prid = prid ;
18
20
this . cli = cli ;
19
21
this . dir = dir ;
22
+ this . upstream = upstream ;
23
+ this . gpgSign = gpgSign ;
20
24
this . options = { owner, repo, lint, includeCVE } ;
21
25
}
22
26
@@ -88,14 +92,15 @@ export default class CherryPick {
88
92
} else if ( cleanLint === LINT_RESULTS . SUCCESS ) {
89
93
cli . ok ( 'Lint passed cleanly' ) ;
90
94
}
91
- return this . amend ( metadata . metadata , commitInfo ) ;
95
+ this . metadata = metadata . metadata ;
96
+ return this . amend ( commitInfo ) ;
92
97
} catch ( e ) {
93
98
cli . error ( e . message ) ;
94
99
return false ;
95
100
}
96
101
}
97
102
98
- async amend ( metadata , commitInfo ) {
103
+ async amend ( commitInfo ) {
99
104
const { cli } = this ;
100
105
const subjects = await runAsync ( 'git' ,
101
106
[ 'log' , '--pretty=format:%s' , `${ commitInfo . base } ..${ commitInfo . head } ` ] ,
@@ -116,7 +121,7 @@ export default class CherryPick {
116
121
await runAsync ( 'git' , [ 'commit' , '--amend' , '--no-edit' ] ) ;
117
122
}
118
123
119
- return LandingSession . prototype . amend . call ( this , metadata ) ;
124
+ return LandingSession . prototype . amend . call ( this ) ;
120
125
}
121
126
122
127
readyToAmend ( ) {
0 commit comments