patchrelay 0.59.0 → 0.59.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "service": "patchrelay",
3
- "version": "0.59.0",
4
- "commit": "34953d2c9399",
5
- "builtAt": "2026-05-02T22:05:57.144Z"
3
+ "version": "0.59.1",
4
+ "commit": "1e520e0829e3",
5
+ "builtAt": "2026-05-02T23:50:20.540Z"
6
6
  }
@@ -430,6 +430,7 @@ function buildCiEntry(params) {
430
430
  const owner = deriveCiOwner({
431
431
  delegatedToPatchRelay,
432
432
  gateCheckStatus,
433
+ activeRunId: issue.activeRunId,
433
434
  factoryState: issue.factoryState,
434
435
  reviewDecision,
435
436
  reviewRequested,
@@ -461,6 +462,9 @@ function buildCiEntry(params) {
461
462
  };
462
463
  }
463
464
  function deriveCiOwner(params) {
465
+ if (params.activeRunId !== undefined) {
466
+ return "patchrelay";
467
+ }
464
468
  const headAdvancedPastBlockingReview = Boolean(params.currentHeadSha
465
469
  && params.latestBlockingReviewHeadSha
466
470
  && params.currentHeadSha !== params.latestBlockingReviewHeadSha);
@@ -84,6 +84,13 @@ export class InterruptedRunRecovery {
84
84
  queueRepairAttempts: issue.queueRepairAttempts - 1,
85
85
  });
86
86
  }
87
+ else if (isRequestedChangesRunType(run.runType) && issue.reviewFixAttempts > 0) {
88
+ this.db.issueSessions.upsertIssueWithLease(lease, {
89
+ projectId: issue.projectId,
90
+ linearIssueId: issue.linearIssueId,
91
+ reviewFixAttempts: issue.reviewFixAttempts - 1,
92
+ });
93
+ }
87
94
  if (run.runType === "ci_repair" || run.runType === "queue_repair") {
88
95
  this.db.issueSessions.upsertIssueWithLease(lease, {
89
96
  projectId: issue.projectId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.59.0",
3
+ "version": "0.59.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {