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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/webhooks.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.10.52",
3
+ "version": "0.10.53",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
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);