ework-web 0.10.52 → 0.10.53
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/webhooks.ts +5 -0
package/package.json
CHANGED
package/src/webhooks.ts
CHANGED
|
@@ -687,6 +687,11 @@ export async function emitCommentEvent(
|
|
|
687
687
|
if (!issue) return;
|
|
688
688
|
const comment = await getCommentByIdSafe(commentId);
|
|
689
689
|
if (!comment) return;
|
|
690
|
+
const cfg = await getConfigAll();
|
|
691
|
+
const scopeKey = `${project.owner}/${project.name}`;
|
|
692
|
+
if (cfg["dispatchEnabled"] === "false" || cfg[`dispatchOff:${scopeKey}`] === "1" || (issue as IssueRow).ai_status === "dispatch_off") {
|
|
693
|
+
log.info(`webhook: dispatch disabled but waking via comment_created (author=${comment.author}) for ${scopeKey}#${issue.number}`);
|
|
694
|
+
}
|
|
690
695
|
const commentCount = await countCommentsSafe(issueId);
|
|
691
696
|
const globalDefault = (await loadConfig()).defaultModel;
|
|
692
697
|
const model = resolveModel(project.model, globalDefault);
|