Ignoring origin/HEAD if it shows up

This commit is contained in:
2025-07-26 02:33:19 +02:00
parent 0075666d85
commit c69ffe3299
2 changed files with 43 additions and 42 deletions

1
app.ts
View File

@@ -62,6 +62,7 @@ const fetchBranches = async (): Promise<string[]> => {
.split("\n")
.map((branch) => branch.trim())
.filter((branch) => branch !== ""
&& !branch.includes("origin/HEAD")
&& !IGNORED_BRANCHES
.some(ignored => new RegExp(`^${ ignored }$`)
.test(branch.replace("origin/", ""))));