mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:20:43 +00:00
fix(github): exempt clownfish PRs from active limit closure
This commit is contained in:
@@ -238,6 +238,11 @@ const candidateActionRules = [
|
||||
|
||||
const normalizeLogin = (login) => login.toLowerCase();
|
||||
|
||||
export function isClownfishPullRequest(pullRequest) {
|
||||
const headRefName = pullRequest.headRefName ?? pullRequest.head?.ref ?? "";
|
||||
return typeof headRefName === "string" && headRefName.startsWith("clownfish/");
|
||||
}
|
||||
|
||||
export function extractIssueFormValue(body, field) {
|
||||
if (!body) {
|
||||
return "";
|
||||
@@ -1026,6 +1031,9 @@ export async function runBarnacleAutoResponse({ github, context, core = console
|
||||
if (pullRequest && labelSet.has(activePrLimitOverrideLabel)) {
|
||||
labelSet.delete(activePrLimitLabel);
|
||||
}
|
||||
if (pullRequest && isClownfishPullRequest(pullRequest)) {
|
||||
await removeLabels(github, context, pullRequest.number, [activePrLimitLabel], labelSet);
|
||||
}
|
||||
|
||||
const rule = rules.find((item) => labelSet.has(item.label));
|
||||
if (!rule) {
|
||||
|
||||
Reference in New Issue
Block a user