This is a small update to the changes I made in https://github.com/danger/peril/pull/446. It moves the logic to fetch.ts so that it is transparent to the Github helpers and applies tp anywhere fetch is called. I've also added a check that we have not exceeded the retries before throwing the error.
This is a small update to the changes I made in https://github.com/danger/peril/pull/446. It moves the logic to
fetch.ts
so that it is transparent to the Github helpers and applies tp anywherefetch
is called. I've also added a check that we have not exceeded the retries before throwing the error.It more closely matches what I implemented in https://github.com/danger/danger-js/pull/898.