r-lib / gh

Minimalistic GitHub API client in R
https://gh.r-lib.org
Other
223 stars 52 forks source link

Allow for lower-case method? #166

Closed maelle closed 2 years ago

maelle commented 2 years ago

When copying from the API docs (in Firefox, not sure if relevant) I get e.g. get /users/{username}/repos so I can't just paste it into my code.

Not a major inconvenience for sure, but I was wondering whether the method could be transformed directly into upper-case?

gaborcsardi commented 2 years ago

Interesting. So in Firefox if you copy from here: https://docs.github.com/en/rest/reference/repos#list-organization-repositories you get a lowercase get?

Sure, we can allow lowercase as well, do you want to submit a PR?

maelle commented 2 years ago

Yes that's exactly what happens. :sweat_smile:

I'll make a PR but in 1.5-2 weeks. :slightly_smiling_face:

gaborcsardi commented 2 years ago

Yes that's exactly what happens. 😅

wow

I'll make a PR but in 1.5-2 weeks. 🙂

👍

maelle commented 2 years ago

In my case the "get" is lower-case, turned into upper-case by CSS.