patchrelay 0.10.6 → 0.10.7
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
CHANGED
|
@@ -100,7 +100,7 @@ export class GitHubWebhookHandler {
|
|
|
100
100
|
if (newState === "failed" && event.triggerEvent === "pr_closed" && issue.activeRunId !== undefined) {
|
|
101
101
|
newState = undefined;
|
|
102
102
|
}
|
|
103
|
-
if (newState) {
|
|
103
|
+
if (newState && newState !== issue.factoryState) {
|
|
104
104
|
this.db.upsertIssue({
|
|
105
105
|
projectId: issue.projectId,
|
|
106
106
|
linearIssueId: issue.linearIssueId,
|
package/dist/run-orchestrator.js
CHANGED
|
@@ -30,7 +30,7 @@ function buildRunPrompt(issue, runType, repoPath, context) {
|
|
|
30
30
|
const lines = [
|
|
31
31
|
`Issue: ${issue.issueKey ?? issue.linearIssueId}`,
|
|
32
32
|
issue.title ? `Title: ${issue.title}` : undefined,
|
|
33
|
-
`Branch: ${issue.branchName}
|
|
33
|
+
issue.branchName ? `Branch: ${issue.branchName}` : undefined,
|
|
34
34
|
issue.prNumber ? `PR: #${issue.prNumber}` : undefined,
|
|
35
35
|
"",
|
|
36
36
|
].filter(Boolean);
|
|
@@ -161,8 +161,9 @@ export class RunOrchestrator {
|
|
|
161
161
|
if (prepareResult.ran && prepareResult.exitCode !== 0) {
|
|
162
162
|
throw new Error(`prepare-worktree hook failed (exit ${prepareResult.exitCode}): ${prepareResult.stderr?.slice(0, 500) ?? ""}`);
|
|
163
163
|
}
|
|
164
|
-
//
|
|
165
|
-
|
|
164
|
+
// Reuse the existing thread only for review_fix (reviewer context matters).
|
|
165
|
+
// Implementation, ci_repair, and queue_repair get fresh threads.
|
|
166
|
+
if (issue.threadId && runType === "review_fix") {
|
|
166
167
|
threadId = issue.threadId;
|
|
167
168
|
}
|
|
168
169
|
else {
|