Supported regex in ignored branches, and added release/
This commit is contained in:
5
app.ts
5
app.ts
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user