@neriros/ralphy 3.10.15 → 3.10.16
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/shell/index.js +35 -11
- package/package.json +1 -1
package/dist/shell/index.js
CHANGED
|
@@ -18928,8 +18928,8 @@ import { readFileSync } from "fs";
|
|
|
18928
18928
|
import { resolve } from "path";
|
|
18929
18929
|
function getVersion() {
|
|
18930
18930
|
try {
|
|
18931
|
-
if ("3.10.
|
|
18932
|
-
return "3.10.
|
|
18931
|
+
if ("3.10.16")
|
|
18932
|
+
return "3.10.16";
|
|
18933
18933
|
} catch {}
|
|
18934
18934
|
const dirsToTry = [];
|
|
18935
18935
|
try {
|
|
@@ -107194,33 +107194,39 @@ async function processAwaitingForIssue(issue2, deps) {
|
|
|
107194
107194
|
return false;
|
|
107195
107195
|
}
|
|
107196
107196
|
if (!hasUnchecked(tasks2 ?? "")) {
|
|
107197
|
-
deps.awaitingChangeSet.delete(changeName);
|
|
107198
|
-
await releaseAwaitingMarker(issue2, statePath, {
|
|
107197
|
+
const wasTracked = deps.awaitingChangeSet.delete(changeName);
|
|
107198
|
+
const released = await releaseAwaitingMarker(issue2, statePath, {
|
|
107199
107199
|
indicators,
|
|
107200
107200
|
applyIndicator: deps.applyIndicator,
|
|
107201
107201
|
onLog: deps.onLog
|
|
107202
107202
|
});
|
|
107203
|
-
|
|
107203
|
+
if (wasTracked || released) {
|
|
107204
|
+
deps.onLog(` ${issue2.identifier}: confirmation detect released \u2014 tasks-empty`);
|
|
107205
|
+
}
|
|
107204
107206
|
return false;
|
|
107205
107207
|
}
|
|
107206
107208
|
if (!planningComplete(tasks2 ?? "")) {
|
|
107207
|
-
deps.awaitingChangeSet.delete(changeName);
|
|
107208
|
-
await releaseAwaitingMarker(issue2, statePath, {
|
|
107209
|
+
const wasTracked = deps.awaitingChangeSet.delete(changeName);
|
|
107210
|
+
const released = await releaseAwaitingMarker(issue2, statePath, {
|
|
107209
107211
|
indicators,
|
|
107210
107212
|
applyIndicator: deps.applyIndicator,
|
|
107211
107213
|
onLog: deps.onLog
|
|
107212
107214
|
});
|
|
107213
|
-
|
|
107215
|
+
if (wasTracked || released) {
|
|
107216
|
+
deps.onLog(` ${issue2.identifier}: confirmation detect released \u2014 planning-incomplete`);
|
|
107217
|
+
}
|
|
107214
107218
|
return false;
|
|
107215
107219
|
}
|
|
107216
107220
|
if (isStubArtifact(proposal) || isStubArtifact(design)) {
|
|
107217
|
-
deps.awaitingChangeSet.delete(changeName);
|
|
107218
|
-
await releaseAwaitingMarker(issue2, statePath, {
|
|
107221
|
+
const wasTracked = deps.awaitingChangeSet.delete(changeName);
|
|
107222
|
+
const released = await releaseAwaitingMarker(issue2, statePath, {
|
|
107219
107223
|
indicators,
|
|
107220
107224
|
applyIndicator: deps.applyIndicator,
|
|
107221
107225
|
onLog: deps.onLog
|
|
107222
107226
|
});
|
|
107223
|
-
|
|
107227
|
+
if (wasTracked || released) {
|
|
107228
|
+
deps.onLog(` ${issue2.identifier}: confirmation detect released \u2014 proposal/design not yet filled in`);
|
|
107229
|
+
}
|
|
107224
107230
|
return false;
|
|
107225
107231
|
}
|
|
107226
107232
|
deps.awaitingChangeSet.add(changeName);
|
|
@@ -107601,6 +107607,22 @@ function createLinearResolvers(input) {
|
|
|
107601
107607
|
return null;
|
|
107602
107608
|
}
|
|
107603
107609
|
}
|
|
107610
|
+
async function stripSiblingGroupLabels(issue2, group, keepId) {
|
|
107611
|
+
const map3 = labelCache.get(teamKeyOf(issue2));
|
|
107612
|
+
if (!map3)
|
|
107613
|
+
return;
|
|
107614
|
+
for (const name of issue2.labels) {
|
|
107615
|
+
const siblingId = map3.get(`${group}:${name}`.toLowerCase());
|
|
107616
|
+
if (!siblingId || siblingId === keepId)
|
|
107617
|
+
continue;
|
|
107618
|
+
try {
|
|
107619
|
+
await removeLabelFromIssue(apiKey, issue2.id, siblingId);
|
|
107620
|
+
diag("linear-marker", ` \u2192 ${issue2.identifier} -label='${group}:${name}' (group swap)`, "gray");
|
|
107621
|
+
} catch (err) {
|
|
107622
|
+
diag("linear-marker", `! could not remove sibling label '${group}:${name}' from ${issue2.identifier}: ${err.message}`, "yellow");
|
|
107623
|
+
}
|
|
107624
|
+
}
|
|
107625
|
+
}
|
|
107604
107626
|
async function applyMarker(issue2, m) {
|
|
107605
107627
|
if (m.type === "status") {
|
|
107606
107628
|
const id = await resolveStateId(issue2, m.value);
|
|
@@ -107634,6 +107656,8 @@ function createLinearResolvers(input) {
|
|
|
107634
107656
|
err.issue = issue2.identifier;
|
|
107635
107657
|
throw err;
|
|
107636
107658
|
}
|
|
107659
|
+
if (m.group)
|
|
107660
|
+
await stripSiblingGroupLabels(issue2, m.group, id);
|
|
107637
107661
|
await addLabelToIssue(apiKey, issue2.id, id);
|
|
107638
107662
|
diag("linear-marker", ` \u2192 ${issue2.identifier} +label='${display}'`, "gray");
|
|
107639
107663
|
}
|
package/package.json
CHANGED