Supported regex in ignored branches, and added release/
This commit is contained in:
@@ -6,7 +6,7 @@ author: Skydust
|
||||
inputs:
|
||||
branchesToIgnore:
|
||||
description: Comma separated branches to ignore
|
||||
default: "dev,main,master"
|
||||
default: "dev,main,master,release/.+"
|
||||
required: false
|
||||
mainBranch:
|
||||
description: "The main branch to rebase on"
|
||||
|
||||
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
|
||||
|
||||
2
dist/app.js
vendored
2
dist/app.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user