Handle `pull_request.synchronize` as well
This commit is contained in:
parent
87762259ec
commit
72bc1ae167
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
ISC License
|
ISC License
|
||||||
|
|
||||||
Copyright (c) 2019, Pedro Pombeiro <pombeirp@users.noreply.github.com> (https://github.com/status-im/deps-lock-snitch-bot)
|
Copyright (c) 2019, Status.im <pombeirp@users.noreply.github.com> (https://github.com/status-im/deps-lock-snitch-bot)
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|
|
@ -23,4 +23,4 @@ For more, check out the [Contributing Guide](CONTRIBUTING.md).
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[ISC](LICENSE) © 2019 Pedro Pombeiro <pombeirp@users.noreply.github.com> (https://github.com/status-im/deps-lock-snitch-bot)
|
[ISC](LICENSE) © 2019 Status.im <pombeirp@users.noreply.github.com> (https://github.com/status-im/deps-lock-snitch-bot)
|
||||||
|
|
|
@ -7,7 +7,7 @@ interface Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
export = (app: Application) => {
|
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)
|
return handlePullRequest(context)
|
||||||
})
|
})
|
||||||
// For more information on building apps:
|
// For more information on building apps:
|
||||||
|
@ -18,8 +18,7 @@ export = (app: Application) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handlePullRequest(context: Context) {
|
async function handlePullRequest(context: Context) {
|
||||||
const { github, payload } = context
|
const { github, payload, payload: { pull_request } } = context
|
||||||
const { pull_request } = payload
|
|
||||||
|
|
||||||
const lockFiles: string[] = []
|
const lockFiles: string[] = []
|
||||||
await github.paginate(
|
await github.paginate(
|
||||||
|
|
Loading…
Reference in New Issue