fix(github): skip clownfish active PR label · openclaw/openclaw@86c5f37
vincentkoc
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -278,6 +278,7 @@ jobs:
|
278 | 278 | const labelColor = "B60205"; |
279 | 279 | const labelDescription = `Author has more than ${activePrLimit} active PRs in this repo`; |
280 | 280 | const authorLogin = pullRequest.user?.login; |
| 281 | + const headRefName = pullRequest.head?.ref ?? ""; |
281 | 282 | if (!authorLogin) { |
282 | 283 | return; |
283 | 284 | } |
@@ -374,7 +375,10 @@ jobs:
|
374 | 375 | return false; |
375 | 376 | }; |
376 | 377 | |
377 | | - if (await isPrivilegedAuthor()) { |
| 378 | + const isClownfishPullRequest = |
| 379 | + typeof headRefName === "string" && headRefName.startsWith("clownfish/"); |
| 380 | + |
| 381 | + if ((await isPrivilegedAuthor()) || isClownfishPullRequest) { |
378 | 382 | if (labelNames.has(activePrLimitLabel)) { |
379 | 383 | try { |
380 | 384 | await github.rest.issues.removeLabel({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。