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.
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
andgithub.utils
are recreated inappendPerilContextToDSL
.