pr-shepherd 0.8.0 → 0.8.1
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.
|
@@ -56,7 +56,7 @@ export function formatIterateResult(result) {
|
|
|
56
56
|
}
|
|
57
57
|
case "cancel": {
|
|
58
58
|
const parts = [
|
|
59
|
-
|
|
59
|
+
[`${heading} — ${result.reason}`, "", baseLine, summaryLine].join("\n"),
|
|
60
60
|
result.log,
|
|
61
61
|
"## Instructions",
|
|
62
62
|
"1. Invoke `/loop cancel` via the Skill tool.\n2. Stop.",
|
|
@@ -46,7 +46,12 @@ export function makeIterateResult(action = "wait") {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
if (action === "cancel")
|
|
49
|
-
return {
|
|
49
|
+
return {
|
|
50
|
+
...base,
|
|
51
|
+
action: "cancel",
|
|
52
|
+
reason: "ready-delay-elapsed",
|
|
53
|
+
log: "CANCEL: PR #42 — stopping monitor",
|
|
54
|
+
};
|
|
50
55
|
if (action === "escalate") {
|
|
51
56
|
return {
|
|
52
57
|
...base,
|
|
@@ -45,6 +45,7 @@ export async function runIterate(opts) {
|
|
|
45
45
|
baseBranch: report.baseBranch,
|
|
46
46
|
checks: buildRelevantChecks(report),
|
|
47
47
|
action: "cancel",
|
|
48
|
+
reason: report.mergeStatus.state === "MERGED" ? "merged" : "closed",
|
|
48
49
|
log: `CANCEL: PR #${report.pr} is ${state} — stopping monitor`,
|
|
49
50
|
};
|
|
50
51
|
}
|
|
@@ -72,6 +73,7 @@ export async function runIterate(opts) {
|
|
|
72
73
|
return {
|
|
73
74
|
...base,
|
|
74
75
|
action: "cancel",
|
|
76
|
+
reason: "ready-delay-elapsed",
|
|
75
77
|
log: `CANCEL: PR #${base.pr} has been ready for review — ready-delay elapsed, stopping monitor`,
|
|
76
78
|
};
|
|
77
79
|
}
|