fix(github): exempt clownfish PRs from active limit closure · openclaw/openclaw@c65ec4d
vincentkoc
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -238,6 +238,11 @@ const candidateActionRules = [
|
238 | 238 | |
239 | 239 | const normalizeLogin = (login) => login.toLowerCase(); |
240 | 240 | |
| 241 | +export function isClownfishPullRequest(pullRequest) { |
| 242 | +const headRefName = pullRequest.headRefName ?? pullRequest.head?.ref ?? ""; |
| 243 | +return typeof headRefName === "string" && headRefName.startsWith("clownfish/"); |
| 244 | +} |
| 245 | + |
241 | 246 | export function extractIssueFormValue(body, field) { |
242 | 247 | if (!body) { |
243 | 248 | return ""; |
@@ -1026,6 +1031,9 @@ export async function runBarnacleAutoResponse({ github, context, core = console
|
1026 | 1031 | if (pullRequest && labelSet.has(activePrLimitOverrideLabel)) { |
1027 | 1032 | labelSet.delete(activePrLimitLabel); |
1028 | 1033 | } |
| 1034 | +if (pullRequest && isClownfishPullRequest(pullRequest)) { |
| 1035 | +await removeLabels(github, context, pullRequest.number, [activePrLimitLabel], labelSet); |
| 1036 | +} |
1029 | 1037 | |
1030 | 1038 | const rule = rules.find((item) => labelSet.has(item.label)); |
1031 | 1039 | if (!rule) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。