Closed mpadge closed 3 years ago
Address this by:
pkgcheck::pkgchedk()
within tryCatch()
(because main fn is already called via callr::r_bg()
, and that avoids nesting another callr
process)~/.config/gh/hosts.yml
as configured by gh cli
to assert that user
is ropensci-review-bot
, and if so, use gh cli
to open new issue in ropensci-review-tools/pkgcheck
with info on failed package.Update to step 3, because the gh cli
is used without a login, so there are no corresponding .config
entries. This can be uesd instead:
curl -u <token>:x-oauth-basic https://api.github.com/user
That will then return the corresponding user name, so step 3 can proceed only if that matches ropensci-review-bot
As suggested by @noamross