From 1dfa4a630683635e345f53ec37d6911fc0dae0aa Mon Sep 17 00:00:00 2001 From: shiftinv Date: Sat, 3 Sep 2022 16:09:11 +0200 Subject: [PATCH] fix: improve filter reason strings --- lib/filter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/filter.ts b/lib/filter.ts index 2dcfb9a..aa0b23d 100644 --- a/lib/filter.ts +++ b/lib/filter.ts @@ -10,19 +10,19 @@ export default function filter(headers: Headers, json: any, config: UrlConfig): event === "pull_request" && json.action && !["opened", "closed", "reopened"].includes(json.action) ) { - return "no-op PR event"; + return "no-op PR action"; } if ( event === "issues" && json.action && !["opened", "deleted", "closed", "reopened", "transferred"].includes(json.action) ) { - return "no-op issue event"; + return "no-op issue action"; } if (event === "pull_request_review") { // ignore edit/dismiss actions - if (json.action !== "submitted") return "no-op PR review event"; + if (json.action !== "submitted") return "no-op PR review action"; // if comment (not approval or changes requested), ignore empty review body else if (json.review?.state === "commented" && !json.review?.body) return "empty PR review"; }