Skip to content

Commit ad68e2e

Browse files
committed
remove environment labels from the list to search
1 parent f670580 commit ad68e2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export const main = (octokit: Octokit, input: Input, merge: boolean): Promise<co
2626
core.setFailed(`Request label failed`)
2727
return core.ExitCode.Failure
2828
}
29-
return searchPRwithLabels(octokit, repoName, owner, labels).then((PRs) => {
29+
// Remove *-pro labels from the list
30+
const labelsToSearch = labels.filter((label) => !label.endsWith("-pro"))
31+
return searchPRwithLabels(octokit, repoName, owner, labelsToSearch).then((PRs) => {
3032
core.info(`PRs: ${PRs}`)
3133
if (PRs === undefined) {
3234
core.setFailed(`Request PRs failed`)

0 commit comments

Comments
 (0)