ework-web 0.10.119 → 0.10.120
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/package.json +1 -1
- package/src/upstream-sync.ts +5 -0
package/package.json
CHANGED
package/src/upstream-sync.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
ensureUser,
|
|
12
12
|
postComment,
|
|
13
13
|
editIssue,
|
|
14
|
+
updateIssueAiStatus,
|
|
14
15
|
updateUpstreamSyncState,
|
|
15
16
|
listEnabledUpstreamSyncs,
|
|
16
17
|
} from "./store";
|
|
@@ -155,6 +156,10 @@ export class UpstreamSync {
|
|
|
155
156
|
const target: "open" | "closed" = gi.state === "closed" ? "closed" : "open";
|
|
156
157
|
if (existing.state === target) return false;
|
|
157
158
|
await editIssue(existing.id, { state: target });
|
|
159
|
+
// stale AI badges on closed rows read as noise on the issue list
|
|
160
|
+
if (target === "closed" && existing.ai_status && existing.ai_status !== "completed") {
|
|
161
|
+
await updateIssueAiStatus(existing.id, "");
|
|
162
|
+
}
|
|
158
163
|
if (emit) {
|
|
159
164
|
void emitIssueEvent(this.project.id, existing.id, target === "closed" ? "closed" : "reopened", this.origin);
|
|
160
165
|
}
|