patchrelay 0.35.9 → 0.35.11
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/build-info.json +3 -3
- package/dist/idle-reconciliation.js +12 -3
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -77,9 +77,9 @@ export class IdleIssueReconciler {
|
|
|
77
77
|
await this.routeFailedIssue(issue);
|
|
78
78
|
continue;
|
|
79
79
|
}
|
|
80
|
-
// Probe GitHub for
|
|
81
|
-
// merge conflicts, and
|
|
82
|
-
if (issue.
|
|
80
|
+
// Probe GitHub for idle issues with PRs: detect missed reviews,
|
|
81
|
+
// merge conflicts, and orphaned repair states.
|
|
82
|
+
if (issue.prNumber) {
|
|
83
83
|
await this.reconcileFromGitHub(issue);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -228,6 +228,15 @@ export class IdleIssueReconciler {
|
|
|
228
228
|
this.advanceIdleIssue(issue, "done", { clearFailureProvenance: true });
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
|
+
if (pr.state === "CLOSED") {
|
|
232
|
+
this.logger.info({ issueKey: issue.issueKey, prNumber: issue.prNumber }, "Reconciliation: PR was closed, re-delegating for implementation");
|
|
233
|
+
this.db.upsertIssue({ projectId: issue.projectId, linearIssueId: issue.linearIssueId, prState: "closed" });
|
|
234
|
+
this.advanceIdleIssue(issue, "delegated", {
|
|
235
|
+
pendingRunType: "implementation",
|
|
236
|
+
clearFailureProvenance: true,
|
|
237
|
+
});
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
231
240
|
if (pr.reviewDecision === "APPROVED") {
|
|
232
241
|
this.db.upsertIssue({ projectId: issue.projectId, linearIssueId: issue.linearIssueId, prReviewState: "approved" });
|
|
233
242
|
this.advanceIdleIssue(issue, "awaiting_queue", { clearFailureProvenance: true });
|