danger / peril

☢️ Serious and immediate danger.
https://danger.systems
MIT License
460 stars 58 forks source link

Use full DSL for non-sandboxed PR runs #439

Closed jtreanor closed 5 years ago

jtreanor commented 5 years ago

This fixes https://github.com/danger/peril/issues/367.

Currently, the full DSL is not used for non-sandboxed PR runs. This fixes that by calling the existing createPRDSL function and providing the GH access token so the API can be authenticated.

This was not a problem for sandboxed runs since guthub.api and github.utils are recreated in appendPerilContextToDSL.

vercel[bot] commented 5 years ago

This pull request is automatically deployed with Now. To access deployments, click Details below or on the icon next to each push.

orta commented 5 years ago

Nice one!