@@ -19,6 +19,10 @@ export default class ReleasePromotion extends Session {
19
19
constructor ( argv , req , cli , dir ) {
20
20
super ( cli , dir , argv . prid ) ;
21
21
this . req = req ;
22
+ if ( argv . security ) {
23
+ this . config . owner = 'nodejs-private' ;
24
+ this . config . repo = 'node-private' ;
25
+ }
22
26
this . dryRun = ! argv . run ;
23
27
this . isLTS = false ;
24
28
this . ltsCodename = '' ;
@@ -398,7 +402,7 @@ export default class ReleasePromotion extends Session {
398
402
// Set up the branch so that nightly builds are produced with the next
399
403
// version number and a pre-release tag.
400
404
async setupForNextRelease ( ) {
401
- const { versionComponents, prid } = this ;
405
+ const { versionComponents, prid, owner , repo } = this ;
402
406
403
407
// Update node_version.h for next patch release.
404
408
const filePath = path . resolve ( 'src' , 'node_version.h' ) ;
@@ -429,7 +433,7 @@ export default class ReleasePromotion extends Session {
429
433
'-m' ,
430
434
`Working on ${ workingOnVersion } ` ,
431
435
'-m' ,
432
- `PR-URL: https://github.com/nodejs/node /pull/${ prid } `
436
+ `PR-URL: https://github.com/${ owner } / ${ repo } /pull/${ prid } `
433
437
] , { ignoreFailure : false } ) ;
434
438
const workingOnNewReleaseCommit = await forceRunAsync ( 'git' , [ 'rev-parse' , 'HEAD' ] ,
435
439
{ ignoreFailure : false , captureStdout : true } ) ;
0 commit comments