diff --git a/src/resolve.ts b/src/resolve.ts index dbabb98..38481e1 100644 --- a/src/resolve.ts +++ b/src/resolve.ts @@ -143,9 +143,10 @@ export function resolveLabels(options: ResolveInput): ResolveResult { }; if (checkLabelRules(combinedValue)) { - break; + continue; } + let removed = false; for (const become of value.becomes) { if (become.matches.every((l) => activeLabels.has(l.name))) { checkLabelRules({ @@ -161,12 +162,17 @@ export function resolveLabels(options: ResolveInput): ResolveResult { effect: ChangeVerb.REMOVED, label: name, }); + removed = true; } break; } } + if (removed) { + continue; + } + activeValue = name; } }