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 05d16a4 tweak logic 05d16a4 is described below commit 05d16a4de957eb6083bfd7688b6079ecc492aa7d Author: plainheart <y...@all-my-life.cn> AuthorDate: Sat Oct 8 13:38:29 2022 +0800 tweak logic --- index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a17e3f2..6abe430 100644 --- a/index.js +++ b/index.js @@ -243,8 +243,11 @@ module.exports = (/** @type {Probot} */ app) => { const addLabel = []; const removeLabel = []; - if (isOpen) { - (pr.draft ? removeLabel : addLabel).push(labelText.PR_AWAITING_REVIEW); + if (pr.draft) { + removeLabel.push(labelText.PR_AWAITING_REVIEW); + } + else if (isOpen) { + addLabel.push(labelText.PR_AWAITING_REVIEW); } const content = pr.body || ''; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org