Supported regex in ignored branches, and added release/

This commit is contained in:
Auto Rebase
2025-01-16 22:05:43 +01:00
parent 2150673d22
commit 8485e19ccd
3 changed files with 6 additions and 3 deletions

5
app.ts
View File

@@ -61,7 +61,10 @@ const fetchBranches = async (): Promise<string[]> => {
return branches
.split("\n")
.map((branch) => branch.trim())
.filter((branch) => !IGNORED_BRANCHES.includes(branch.replace("origin/", "")) && branch !== "");
.filter((branch) => branch !== ""
&& !IGNORED_BRANCHES
.some(ignored => new RegExp(`^${ ignored }$`)
.test(branch.replace("origin/", ""))));
}
// Get the full commit history for a branch