@bivy/bivy 0.16.18 → 0.16.19-staging.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation/match.js +4 -1
- package/package.json +1 -1
package/dist/automation/match.js
CHANGED
|
@@ -19,7 +19,10 @@ export function labelsMatch(filter, eventLabels) {
|
|
|
19
19
|
const filters = (filter && filter.length > 0 ? filter : DEFAULT_LABEL_FILTER).map((l) => l.trim().toLowerCase()).filter(Boolean);
|
|
20
20
|
if (filters.length === 0)
|
|
21
21
|
return true;
|
|
22
|
-
|
|
22
|
+
// Prefix matching is for routing labels, not status labels such as
|
|
23
|
+
// bivy/<node>:in-progress. Otherwise claiming work triggers another run.
|
|
24
|
+
// Explicit custom labels (including ones containing ':') still match exactly.
|
|
25
|
+
return normalized.some((label) => filters.some((f) => label === f || (label.startsWith(`${f}/`) && !label.includes(":"))));
|
|
23
26
|
}
|
|
24
27
|
function actionAllowed(rule, action) {
|
|
25
28
|
if (!rule.actions?.length)
|