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 2f2ce15 fix: fix `isCoreCommitter` import bug and update a deprecated usage(edit -> update). 2f2ce15 is described below commit 2f2ce155c0c77df6a8e774c37ab7c50758738fdf Author: plainheart <y...@all-my-life.cn> AuthorDate: Thu Aug 20 18:25:03 2020 +0800 fix: fix `isCoreCommitter` import bug and update a deprecated usage(edit -> update). --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b3858c9..212df55 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ const Issue = require('./src/issue'); const text = require('./src/text'); -const isCoreCommitter = require('./src/coreCommitters'); +const { isCoreCommitter } = require('./src/coreCommitters'); module.exports = app => { app.on(['issues.opened'], async context => { @@ -157,7 +157,7 @@ function getRemoveLabel(context, name) { } function closeIssue(context) { - const closeIssue = context.github.issues.edit(context.issue({ + const closeIssue = context.github.issues.update(context.issue({ state: 'closed' })); return closeIssue; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org