You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to avoid trying to get the reviews from the API ? I am not using it and my enterprise Github API doesn't have this endpoint. Error message :
❯ npm run danger
> lerna-desktop@0.0.0 danger /Users/alexandrer/development/tango/trainline-desktop
> scripts/danger.sh
OK, looks good Fake Testing CI on GitHub
Request failed [404]: https://github.thetrainline.com/api/v3/repos/Tango/trainline-desktop/pulls/752/reviews
Response: {
"message": "Not Found",
"documentation_url": "https://developer.github.com/enterprise/2.8/v3"
}
Error: Error: 404
at GitHubAPI.<anonymous> (/Users/alexandrer/development/tango/trainline-desktop/node_modules/danger/distribution/api/fetch.js:92:27)
at step (/Users/alexandrer/development/tango/trainline-desktop/node_modules/danger/distribution/api/fetch.js:32:23)
at Object.next (/Users/alexandrer/development/tango/trainline-desktop/node_modules/danger/distribution/api/fetch.js:13:53)
at fulfilled (/Users/alexandrer/development/tango/trainline-desktop/node_modules/danger/distribution/api/fetch.js:4:58)
at process._tickCallback (internal/process/next_tick.js:103:7)
The text was updated successfully, but these errors were encountered:
This relates to #163 - right now if any API requests fail, then the build fails. However, if GH enterprise doesn't have the new reviews systems, then it'll need to fail and return an empty object/array without failing the build.
Think you can make the error handling move inline?
Is there a way to avoid trying to get the reviews from the API ? I am not using it and my enterprise Github API doesn't have this endpoint. Error message :
The text was updated successfully, but these errors were encountered: