diff --git a/LICENSE b/LICENSE index f9db12a..3a6d189 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ ISC License -Copyright (c) 2019, Pedro Pombeiro (https://github.com/status-im/deps-lock-snitch-bot) +Copyright (c) 2019, Status.im (https://github.com/status-im/deps-lock-snitch-bot) Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/README.md b/README.md index 5ed4bf7..b62a512 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,4 @@ For more, check out the [Contributing Guide](CONTRIBUTING.md). ## License -[ISC](LICENSE) © 2019 Pedro Pombeiro (https://github.com/status-im/deps-lock-snitch-bot) +[ISC](LICENSE) © 2019 Status.im (https://github.com/status-im/deps-lock-snitch-bot) diff --git a/src/index.ts b/src/index.ts index 52d59ef..c97c7ae 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ interface Config { } export = (app: Application) => { - app.on(['pull_request.opened', 'pull_request.edited'], (context: Context) => { + app.on(['pull_request.opened', 'pull_request.edited', 'pull_request.synchronize'], (context: Context) => { return handlePullRequest(context) }) // For more information on building apps: @@ -18,8 +18,7 @@ export = (app: Application) => { } async function handlePullRequest(context: Context) { - const { github, payload } = context - const { pull_request } = payload + const { github, payload, payload: { pull_request } } = context const lockFiles: string[] = [] await github.paginate(