Skip to content

Commit

Permalink
fix: handle UNKNOWN status and lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Jan 15, 2025
1 parent 12dcbf6 commit 5a6058f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class ReleasePreparation extends Session {
const { cli } = this;

cli.warn(`PR#${pr.number} - ${pr.title} is not 'MERGEABLE'.
So, it will be skipped. Status: ${pr.mergeable}`);
Status: ${pr.mergeable}`);
}

async getOpenPRs(filterLabels) {
Expand All @@ -66,7 +66,6 @@ export default class ReleasePreparation extends Session {
for (const pr of prs) {
if (pr.mergeable !== 'MERGEABLE') {
this.warnForNonMergeablePR(pr);
continue;
}
const cp = new CherryPick(pr.number, this.dir, cli, {
owner: this.owner,
Expand Down Expand Up @@ -486,7 +485,7 @@ export default class ReleasePreparation extends Session {
let releaseHeader = `## ${date}, Version ${newVersion}` +
` ${releaseInfo}, @${username}\n`;
if (isSecurityRelease) {
releaseHeader += '\nThis is a security release.';
releaseHeader += '\nThis is a security release.\n';
}

const topHeader =
Expand Down

0 comments on commit 5a6058f

Please sign in to comment.