ropensci-review-tools / roreviewapi

API endpoint for package reviews via ropensci-review-bot
https://docs.ropensci.org/roreviewapi
4 stars 1 forks source link

error with is_user_authorized() #53

Closed maelle closed 7 months ago

maelle commented 11 months ago

image

mpadge commented 11 months ago

Sorry, that's because of this line: https://github.com/ropensci-review-tools/roreviewapi/blob/17aa14b7ffe7ba297d1917dadd250117127703c4/R/utils.R#L24 as documented in README: https://github.com/ropensci-review-tools/roreviewapi/blob/17aa14b7ffe7ba297d1917dadd250117127703c4/README.md?plain=1#L31-L33 So this pkg expects that to exist. gitcreds isn't used, because it's much easier to work directly with envvars on the server itself (and also that's how the actual gh cli works too). But if you had time, you could fix it by submitting a PR which inserts lines after that with if (is.null(gh_tok)) ... try gitcreds to get it. That'd be great, thanks!