-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow connection to other github servers in `board_register_github() #163
Comments
@cnolanminich don't have GitHub enterprise to properly test this change, but according to their docs, should be as simple as using a different host. Fix available at #181, which you can install as follows: remotes::install_github("rstudio/pin", ref = "bugfix/github-enterprise-163") Afterwards, should be possible to use your GitHub Enterprise instance as follows: library(pins)
board_register_github(repo = "owner/repo", host = "https://yourhostname/api/v3") |
Thanks @javierluraschi! Registering the board to my enterprise GitHub works 💯, and I was able to pin a dataset. The major remaining problem is that {pins} uses a url pattern to download the Here is the error I get: pins::pin(mtcars, "test-pins", board = "github")
pins::pin_get("test-pins", board = "github")
I verified that the data is correctly posted to my GitHub enterprise The If you are open to continuing this, I might suggest using the I took a pass at trying to do this, but it became apparent switching it out would involve more substantial changes to how the file is stored. The error from my forked change:
|
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Love this package and am excited about evangelizing it without my team 🚀
It would be really useful to be able to connect to other GitHub servers (i.e. GitHub Enterprise Servers) with
board_register_github()
.I think if there were a
server
argument in theboard_register_github()
function, similar to theboard_register_rsconnect()
function, that would satisfy this request but not add much (any?) complexity to the function. Perhaps with a default argument ofhttps://api.github.com/repos/
.I think this would require code changes here and here, and of course updating
board_initialize.github()
to include an argument forserver
.Happy to send a PR your way if this is something you think makes sense in the package.
The text was updated successfully, but these errors were encountered: