fix(github): skip clownfish active PR label

This commit is contained in:
Vincent Koc
2026-04-28 19:51:02 -07:00
parent 9bf50450de
commit 86c5f378d6

View File

@@ -278,6 +278,7 @@ jobs:
const labelColor = "B60205";
const labelDescription = `Author has more than ${activePrLimit} active PRs in this repo`;
const authorLogin = pullRequest.user?.login;
const headRefName = pullRequest.head?.ref ?? "";
if (!authorLogin) {
return;
}
@@ -374,7 +375,10 @@ jobs:
return false;
};
if (await isPrivilegedAuthor()) {
const isClownfishPullRequest =
typeof headRefName === "string" && headRefName.startsWith("clownfish/");
if ((await isPrivilegedAuthor()) || isClownfishPullRequest) {
if (labelNames.has(activePrLimitLabel)) {
try {
await github.rest.issues.removeLabel({