patchrelay 0.25.2 → 0.25.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "service": "patchrelay",
3
- "version": "0.25.2",
4
- "commit": "9b4ed34e9645",
5
- "builtAt": "2026-03-26T19:10:03.366Z"
3
+ "version": "0.25.3",
4
+ "commit": "f811135728dc",
5
+ "builtAt": "2026-03-26T19:17:03.821Z"
6
6
  }
@@ -305,6 +305,13 @@ export class WebhookHandler {
305
305
  }
306
306
  if (!triggerEventAllowed(project, normalized.triggerEvent))
307
307
  return;
308
+ // Ignore PatchRelay's own comments to prevent self-triggering feedback loops.
309
+ // When a run completes, PatchRelay posts an activity to Linear, which fires a
310
+ // commentCreated webhook back — without this guard that re-enqueues a new run.
311
+ const installation = this.db.linearInstallations.getLinearInstallationForProject(project.id);
312
+ if (installation?.actorId && normalized.actor?.id === installation.actorId) {
313
+ return;
314
+ }
308
315
  const issue = this.db.getIssue(project.id, normalized.issue.id);
309
316
  if (!issue)
310
317
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.25.2",
3
+ "version": "0.25.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {