This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-bot.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c9d670  chore: update dependencies.
9c9d670 is described below

commit 9c9d6707961ec8943af8e0eee53fee369ce2bbb8
Author: plainheart <[email protected]>
AuthorDate: Thu Dec 16 11:46:16 2021 +0800

    chore: update dependencies.
---
 index.js          |  4 ++--
 package-lock.json | 16 ++++++++--------
 package.json      |  4 ++--
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/index.js b/index.js
index 7f3c046..ee585a1 100644
--- a/index.js
+++ b/index.js
@@ -147,8 +147,8 @@ module.exports = (/** @type import('probot').Probot */ app) 
=> {
         let removeLabel;
         let addLabel;
         if (isCore && !isCommenterAuthor) {
-            // add `duplicate` label when a committer comments with the 
`Duplicate of` keyword on the issue
-            if (comment.body.indexOf('Duplicate of #') > -1) {
+            // add `duplicate` label when a committer comments with the 
`Duplicate of/with` keyword on the issue
+            if (/Duplicate (of|with) #/i.test(comment.body)) {
                 addLabel = labelText.DUPLICATE;
             }
             else {
diff --git a/package-lock.json b/package-lock.json
index 4792d9a..4d542a5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,7 +12,7 @@
         "@plainheart/google-translate-api": "^1.1.0",
         "bing-translate-api": "^2.2.1",
         "franc-min": "^5.0.0",
-        "probot": "^12.1.1"
+        "probot": "^12.1.3"
       },
       "devDependencies": {
         "jest": "^25.0.0",
@@ -21,7 +21,7 @@
         "smee-client": "^1.2.2",
         "standard": "^14.3.1",
         "winston": "^3.3.3",
-        "winston-daily-rotate-file": "^4.5.0"
+        "winston-daily-rotate-file": "^4.5.5"
       },
       "engines": {
         "node": ">=10.21"
@@ -8366,9 +8366,9 @@
       }
     },
     "node_modules/probot": {
-      "version": "12.1.1",
-      "resolved": "https://registry.npmjs.org/probot/-/probot-12.1.1.tgz";,
-      "integrity": 
"sha512-ETuk/uRldzV58KwLCfXqAfdXTNDwT4NvHoWnigBFXACYO0DhORAxAd0gwK1HpRgl3ROgyPr5f7pKQCP3g3FFVw==",
+      "version": "12.1.3",
+      "resolved": "https://registry.npmjs.org/probot/-/probot-12.1.3.tgz";,
+      "integrity": 
"sha512-3g3/I11Vjn/wO84PHnuexRY+wjpOK6RC2jESzDhIzU3H1Gs9Y4UJsrZBoX0MgemZ1t/Okk3rLihol4QzonQ7zQ==",
       "dependencies": {
         "@octokit/core": "^3.2.4",
         "@octokit/plugin-enterprise-compatibility": "^1.2.8",
@@ -18332,9 +18332,9 @@
       }
     },
     "probot": {
-      "version": "12.1.1",
-      "resolved": "https://registry.npmjs.org/probot/-/probot-12.1.1.tgz";,
-      "integrity": 
"sha512-ETuk/uRldzV58KwLCfXqAfdXTNDwT4NvHoWnigBFXACYO0DhORAxAd0gwK1HpRgl3ROgyPr5f7pKQCP3g3FFVw==",
+      "version": "12.1.3",
+      "resolved": "https://registry.npmjs.org/probot/-/probot-12.1.3.tgz";,
+      "integrity": 
"sha512-3g3/I11Vjn/wO84PHnuexRY+wjpOK6RC2jESzDhIzU3H1Gs9Y4UJsrZBoX0MgemZ1t/Okk3rLihol4QzonQ7zQ==",
       "requires": {
         "@octokit/core": "^3.2.4",
         "@octokit/plugin-enterprise-compatibility": "^1.2.8",
diff --git a/package.json b/package.json
index 3d21640..e2f122e 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
     "@plainheart/google-translate-api": "^1.1.0",
     "bing-translate-api": "^2.2.1",
     "franc-min": "^5.0.0",
-    "probot": "^12.1.1"
+    "probot": "^12.1.3"
   },
   "devDependencies": {
     "jest": "^25.0.0",
@@ -33,7 +33,7 @@
     "smee-client": "^1.2.2",
     "standard": "^14.3.1",
     "winston": "^3.3.3",
-    "winston-daily-rotate-file": "^4.5.0"
+    "winston-daily-rotate-file": "^4.5.5"
   },
   "engines": {
     "node": ">=10.21"

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to