Weirdly GitHub's been sending the same PR web hook to peril for the last 2 weeks, with a PR which doesn't exist. This took down Peril, hah!
https://github.com/danger/peril/pull/442 took a stab a this by catching errors from the Danger run, but TBH - Peril shouldn't be running danger at all if a PR doesn't exist. This PR adds a validation that indeed, the PR exists before running.
And updates sentry, because the logs were useless.
Weirdly GitHub's been sending the same PR web hook to peril for the last 2 weeks, with a PR which doesn't exist. This took down Peril, hah!
https://github.com/danger/peril/pull/442 took a stab a this by catching errors from the Danger run, but TBH - Peril shouldn't be running danger at all if a PR doesn't exist. This PR adds a validation that indeed, the PR exists before running.
And updates sentry, because the logs were useless.