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.
- package/dist/build-info.json +3 -3
- package/dist/webhook-handler.js +7 -0
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/webhook-handler.js
CHANGED
|
@@ -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;
|