Skip to content

Commit

Permalink
chore: Update dependencies
Browse files Browse the repository at this point in the history
After updating probot, npm audit said there were many vulnerabilities.
Those were fixed by running `npm audit fix --force`. That lead to an
update of xo, which required style updates. This commit handles all of
that.

behaviorbot/welcome#15 #hacktoberfest
  • Loading branch information
jwsloan committed Oct 10, 2018
1 parent 24db45c commit cc93016
Show file tree
Hide file tree
Showing 4 changed files with 3,299 additions and 2,085 deletions.
12 changes: 6 additions & 6 deletions index.js
@@ -1,7 +1,7 @@
module.exports = robot => {
robot.on('pull_request.opened', receive);
module.exports = app => {
app.on('pull_request.opened', receive);
async function receive(context) {
// Get all issues for repo with user as creator
// Get all issues for repo with user as creator
const response = await context.github.issues.getForRepo(context.repo({
state: 'all',
creator: context.payload.pull_request.user.login
Expand All @@ -14,9 +14,9 @@ module.exports = robot => {
if (config.newPRWelcomeComment) {
context.github.issues.createComment(context.issue({body: config.newPRWelcomeComment}));
}
} catch (err) {
if (err.code !== 404) {
throw err;
} catch (error) {
if (error.code !== 404) {
throw error;
}
}
}
Expand Down

0 comments on commit cc93016

Please sign in to comment.