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

ovilia 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 0826d47  fix: adding awaiting review label when approves
0826d47 is described below

commit 0826d47303d81316cbdc3d4e3b5972810b3169b6
Author: Ovilia <[email protected]>
AuthorDate: Tue Jun 14 15:24:21 2022 +0800

    fix: adding awaiting review label when approves
---
 index.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 368c612..43c4789 100644
--- a/index.js
+++ b/index.js
@@ -274,8 +274,7 @@ module.exports = (/** @type import('probot').Probot */ app) 
=> {
                 const commentText = checkDoc(content, '', addLabel, 
removeLabel);
                 return Promise.all([
                     commentIssue(context, commentText),
-                    addLabels(context, [labelText.PR_REVISION_NEEDED]),
-                    removeLabels(context, [labelText.PR_AWAITING_REVIEW])
+                    removeLabels(context, [labelText.PR_AWAITING_REVIEW, 
labelText.PR_REVISION_NEEDED])
                 ]);
             }
         }


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

Reply via email to