Skip to content
Permalink
Browse files
fix: fix isCoreCommitter import bug and update a deprecated usage(e…
…dit -> update).
  • Loading branch information
plainheart authored and Ovilia committed Aug 21, 2020
1 parent a58c231 commit 2f2ce155c0c77df6a8e774c37ab7c50758738fdf
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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;

0 comments on commit 2f2ce15

Please sign in to comment.