From 0cee3e33c4d28fbaa92f8d6b0bd8753c8051b16a Mon Sep 17 00:00:00 2001 From: Avaelo <127422332+avaelo@users.noreply.github.com> Date: Wed, 7 Feb 2024 06:18:58 +0700 Subject: [PATCH 1/3] add config for sent delete event --- config/jsons/github-events.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/jsons/github-events.json b/config/jsons/github-events.json index aef10a1..562f4a8 100644 --- a/config/jsons/github-events.json +++ b/config/jsons/github-events.json @@ -128,5 +128,6 @@ "requested": false, "in_progress": true, "completed": true - } + }, + "delete": true } From 0f044ece8eb07a80cd82fd02b3163ed7d7d91f2a Mon Sep 17 00:00:00 2001 From: Avaelo <127422332+avaelo@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:39:40 +0700 Subject: [PATCH 2/3] fix delete webhook meta config --- config/jsons/github-events.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/jsons/github-events.json b/config/jsons/github-events.json index 562f4a8..3c7c1ae 100644 --- a/config/jsons/github-events.json +++ b/config/jsons/github-events.json @@ -129,5 +129,7 @@ "in_progress": true, "completed": true }, - "delete": true + "meta": { + "delete": true + } } From 1bfef85d32185170dca7ba25533f5ccbb56f4d12 Mon Sep 17 00:00:00 2001 From: Avaelo <127422332+avaelo@users.noreply.github.com> Date: Wed, 7 Feb 2024 23:34:23 +0700 Subject: [PATCH 3/3] remove redundant singular rule for event --- common/helpers.php | 1 - config/jsons/github-events.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/helpers.php b/common/helpers.php index 1a987f7..a1d19e2 100755 --- a/common/helpers.php +++ b/common/helpers.php @@ -34,7 +34,6 @@ function tgn_singularity(string $word): string|null '/([^f])ves$/i' => '$1fe', '/(^analy)ses$/i' => '$1sis', '/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i' => '$1$2sis', - '/([ti])a$/i' => '$1um', '/(n)ews$/i' => '$1ews', '/(.)s$/i' => '$1', ]; diff --git a/config/jsons/github-events.json b/config/jsons/github-events.json index 3c7c1ae..3905c8b 100644 --- a/config/jsons/github-events.json +++ b/config/jsons/github-events.json @@ -130,6 +130,6 @@ "completed": true }, "meta": { - "delete": true + "deleted": true } }