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


The following commit(s) were added to refs/heads/master by this push:
     new a58c231  fix: pull request is committer checking
a58c231 is described below

commit a58c2318116c505577d40dcffb9b467a36955b05
Author: Ovilia <zwl.s...@gmail.com>
AuthorDate: Fri Aug 14 13:19:57 2020 +0800

    fix: pull request is committer checking
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 542578d..b3858c9 100644
--- a/index.js
+++ b/index.js
@@ -90,7 +90,7 @@ module.exports = app => {
 
     app.on(['pull_request.opened'], async context => {
         // const auth = context.payload.pull_request.author_association;
-        const isCore = isCoreCommitter(context.payload.issue.user.login);
+        const isCore = 
isCoreCommitter(context.payload.pull_request.user.login);
         const comment = context.github.issues.createComment(context.issue({
             body: isCore ? text.PR_OPENED_BY_COMMITTER : text.PR_OPENED
         }));


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

Reply via email to