@opencode-linear-agent/server 0.1.3-master.15 → 0.1.3-master.16
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/index.js +18 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -66902,7 +66902,7 @@ function toIssueStateType(value) {
|
|
|
66902
66902
|
case "canceled":
|
|
66903
66903
|
return value;
|
|
66904
66904
|
default:
|
|
66905
|
-
return "
|
|
66905
|
+
return "unknown";
|
|
66906
66906
|
}
|
|
66907
66907
|
}
|
|
66908
66908
|
function mapElicitationSignal(signal) {
|
|
@@ -67240,6 +67240,20 @@ ${truncatedStack}
|
|
|
67240
67240
|
const result = await Result.tryPromise({
|
|
67241
67241
|
try: async () => {
|
|
67242
67242
|
const issue = await this.client.issue(issueId);
|
|
67243
|
+
const state = await issue.state;
|
|
67244
|
+
if (!state) {
|
|
67245
|
+
throw new Error("Issue has no workflow state");
|
|
67246
|
+
}
|
|
67247
|
+
const stateType = toIssueStateType(state.type);
|
|
67248
|
+
if (stateType !== "unstarted") {
|
|
67249
|
+
this.log.info("Skipping issue auto-transition", {
|
|
67250
|
+
issueId,
|
|
67251
|
+
stateId: state.id,
|
|
67252
|
+
stateName: state.name,
|
|
67253
|
+
stateType
|
|
67254
|
+
});
|
|
67255
|
+
return;
|
|
67256
|
+
}
|
|
67243
67257
|
const team = await issue.team;
|
|
67244
67258
|
if (!team) {
|
|
67245
67259
|
throw new Error("Issue has no associated team");
|
|
@@ -67256,8 +67270,10 @@ ${truncatedStack}
|
|
|
67256
67270
|
this.log.warn("No In Progress state found", { issueId });
|
|
67257
67271
|
return;
|
|
67258
67272
|
}
|
|
67259
|
-
this.log.info("Moving issue to
|
|
67273
|
+
this.log.info("Moving issue to first started state", {
|
|
67260
67274
|
issueId,
|
|
67275
|
+
fromStateId: state.id,
|
|
67276
|
+
fromStateName: state.name,
|
|
67261
67277
|
stateId: inProgressState.id,
|
|
67262
67278
|
stateName: inProgressState.name
|
|
67263
67279
|
});
|