Closed mpadge closed 3 years ago
ping @noamross this issue is clearly important, and will be addressed asap. Instead of an uninformative 500, the bot will then tell editors (ie. you) that:
@ropensci-review-bot check package
.Other checks to add: Ensure "Name" field is correctly specified: Version could also be checked in same way. Ping @maelle
Re-opening because initial deploy encountered a 500 error ...
For reference: 500 error is still triggered if the repourl
parameter is left blank, but I can't find a way around this for the moment. As long as it has some value, even if it's just garbage, everything works fine, including appropriate messages about URL being invalid.
Call it prior to the main
r_bg
call to theeditor_check()
function:https://github.com/ropensci-review-tools/roreviewapi/blob/21b8b44fde6018a5cb8bf23eb1ffece7a39e14a3/R/plumber.R#L14-L32
If it fails, return a message about the missing/mucked-up variables, but also proceed with the main
pkgcheck
call if therepourl
variable is intact, otherwise message that checks not possible and instruct editors to manually pingcheck package
once template has been fixed.