Skip to content
Permalink
Browse files
fix: fix isCoreCommitter import bug and update a deprecated usage(e…
…dit -> update).
  • Loading branch information
plainheart committed Aug 20, 2020
1 parent a58c231 commit cc09b9c6266a139c9184fec1f64c08b33bef9a82
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 cc09b9c

Please sign in to comment.