ework-daemon 0.4.37 → 0.4.38
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
CHANGED
package/src/opencode.ts
CHANGED
|
@@ -667,6 +667,11 @@ export class Engine {
|
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
+
if (event.dispatch_off && event.type === "issue_opened") {
|
|
671
|
+
log.info(`engine: dispatch_off (global/project) — skipping issue_opened for ${ref.trackerType}:${scopeKey}#${ref.issueId}`);
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
|
|
670
675
|
if (event.type === "comment_created" && event.comment?.author) {
|
|
671
676
|
const author = event.comment.author;
|
|
672
677
|
const authorKind = event.comment.author_kind ?? "human";
|
|
@@ -141,11 +141,13 @@ export class GiteaTracker implements IssueTracker {
|
|
|
141
141
|
|
|
142
142
|
const issueUser = issue.user as Record<string, string>;
|
|
143
143
|
const aiStatus = typeof issue.ai_status === "string" ? issue.ai_status : "";
|
|
144
|
+
const dispatchOff = payload.dispatch_off === true;
|
|
144
145
|
|
|
145
146
|
if (action === "opened" || action === "reopened") {
|
|
146
147
|
return {
|
|
147
148
|
type: "issue_opened",
|
|
148
149
|
ref,
|
|
150
|
+
dispatch_off: dispatchOff,
|
|
149
151
|
issue: {
|
|
150
152
|
title: issue.title as string,
|
|
151
153
|
body: (issue.body as string) ?? "",
|
package/src/trackers/types.ts
CHANGED