Skip to content

Commit

Permalink
🩹 (danger): Authorize release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
aussedatlo committed Feb 17, 2025
1 parent 55ed06b commit ce4b59a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions danger/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ export const checkBranches = (
const config = Branch(danger, fail, fork);
const currentBranch = config.getBranch();
console.log("Current branch:", currentBranch);

if (currentBranch.startsWith("release")) {
return true;
}

if (!config.regex.test(currentBranch)) {
config.fail(currentBranch);
return false;
Expand Down

0 comments on commit ce4b59a

Please sign in to comment.