Skip to content

Commit 5dc43ef

Browse files
committed
fix(git-node): security release preparation should not use staging
1 parent d9fff73 commit 5dc43ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/prepare_release.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class ReleasePreparation extends Session {
3737
}
3838

3939
get branch() {
40-
return this.stagingBranch;
40+
return this.isSecurityRelease ? this.releaseBranch : this.stagingBranch;
4141
}
4242

4343
warnForNonMergeablePR(pr) {
@@ -520,7 +520,7 @@ export default class ReleasePreparation extends Session {
520520
await fs.writeFile(majorChangelogPath, arr.join('\n'));
521521
}
522522

523-
async createProposalBranch(base = this.stagingBranch) {
523+
async createProposalBranch(base = this.branch) {
524524
const { newVersion } = this;
525525
const proposalBranch = `v${newVersion}-proposal`;
526526

0 commit comments

Comments
 (0)