patchrelay 0.35.1 → 0.35.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/build-info.json +3 -3
- package/dist/run-orchestrator.js +4 -0
- package/dist/service.js +4 -0
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/run-orchestrator.js
CHANGED
|
@@ -126,6 +126,10 @@ export class RunOrchestrator {
|
|
|
126
126
|
const issue = this.db.getIssue(item.projectId, item.issueId);
|
|
127
127
|
if (!issue?.pendingRunType || issue.activeRunId !== undefined)
|
|
128
128
|
return;
|
|
129
|
+
if (issue.prState === "merged") {
|
|
130
|
+
this.db.upsertIssue({ projectId: issue.projectId, linearIssueId: issue.linearIssueId, pendingRunType: null, factoryState: "done" });
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
129
133
|
const runType = issue.pendingRunType;
|
|
130
134
|
const contextJson = issue.pendingRunContextJson;
|
|
131
135
|
const context = contextJson ? JSON.parse(contextJson) : undefined;
|
package/dist/service.js
CHANGED
|
@@ -487,6 +487,10 @@ export class PatchRelayService {
|
|
|
487
487
|
return undefined;
|
|
488
488
|
if (issue.activeRunId)
|
|
489
489
|
return { error: "Issue already has an active run" };
|
|
490
|
+
if (issue.prState === "merged") {
|
|
491
|
+
this.db.upsertIssue({ projectId: issue.projectId, linearIssueId: issue.linearIssueId, factoryState: "done" });
|
|
492
|
+
return { issueKey, runType: "none" };
|
|
493
|
+
}
|
|
490
494
|
// Infer run type from current state instead of always resetting to implementation
|
|
491
495
|
let runType = "implementation";
|
|
492
496
|
let factoryState = "delegated";
|