Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Mar 15, 2024
1 parent 93d5633 commit 9d39320
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/validate-prs.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function validate({ context }) {
return true;
}

const type = await getReleaseType(title, autoMerge?.merge_method);
const type = await getReleaseType(title, autoMerge?.merge_method) ?? null;
const sets = await read(process.cwd());

/** @type {ReleaseType} */
Expand All @@ -49,6 +49,8 @@ export async function validate({ context }) {
}
}, null);

console.log({ release, type });

if (!release && type?.match(/m(aj|in)or/)) {
throw new Error(`PR conventional commit title has type (${type}) but no changesets were detected.`);
}
Expand Down

0 comments on commit 9d39320

Please sign in to comment.