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:22 UTC
[incubator-echarts-bot] 27/32: fix: fix `isCoreCommitter` import
bug and update a deprecated usage(edit -> update).
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 cc09b9c6266a139c9184fec1f64c08b33bef9a82
Author: plainheart <yh...@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-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org