You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2020/10/28 01:02:20 UTC

[incubator-echarts-bot] 25/32: update committers

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/incubator-echarts-bot.git

commit 0bb310ea9085dd391e2960bae7ad365e17ce9f39
Author: Ovilia <zw...@gmail.com>
AuthorDate: Thu Aug 6 11:00:18 2020 +0800

    update committers
---
 index.js              | 8 +++++---
 src/coreCommitters.js | 7 ++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/index.js b/index.js
index 0563fc7..542578d 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,6 @@
 const Issue = require('./src/issue');
 const text = require('./src/text');
+const isCoreCommitter = require('./src/coreCommitters');
 
 module.exports = app => {
     app.on(['issues.opened'], async context => {
@@ -88,13 +89,14 @@ module.exports = app => {
     });
 
     app.on(['pull_request.opened'], async context => {
-        const auth = context.payload.pull_request.author_association;
+        // const auth = context.payload.pull_request.author_association;
+        const isCore = isCoreCommitter(context.payload.issue.user.login);
         const comment = context.github.issues.createComment(context.issue({
-            body: isCommitter(auth) ? text.PR_OPENED_BY_COMMITTER : text.PR_OPENED
+            body: isCore ? text.PR_OPENED_BY_COMMITTER : text.PR_OPENED
         }));
 
         const labelList = ['PR: awaiting review'];
-        if (isCommitter(auth)) {
+        if (isCore) {
             labelList.push('PR: author is committer');
         }
         const addLabel = context.github.issues.addLabels(context.issue({
diff --git a/src/coreCommitters.js b/src/coreCommitters.js
index 7fb05cb..75dcc9a 100644
--- a/src/coreCommitters.js
+++ b/src/coreCommitters.js
@@ -3,11 +3,16 @@ const committers = [
     '100pah',
     'Ovilia',
     'deqingli',
+    'Wdingding',
     'susiwen8',
     'cuijian-dexter',
     'SnailSword',
     'plainheart',
-    'wf123537200'
+    'wf123537200',
+    'yufeng04',
+    'chfw',
+    'alex2wong',
+    'ClemMakesApps'
 ];
 
 function getCoreCommitters() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org