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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "service": "patchrelay",
3
- "version": "0.35.1",
4
- "commit": "f9a5d8a6d7ff",
5
- "builtAt": "2026-04-02T23:43:16.960Z"
3
+ "version": "0.35.2",
4
+ "commit": "19528baf10d3",
5
+ "builtAt": "2026-04-03T02:18:23.308Z"
6
6
  }
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.35.1",
3
+ "version": "0.35.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {