Skip to content

add host argument to use_github()? #1101

Description

@ijlyttle

Hi,

The use-case for this is for people who use enterprise GitHub.

I have looked at the code, and I think this can be done, but it would involve (I think) also adding a host argument to:

  • github_GET()
  • github_POST()
  • use_github_links()

The change to use_github_links() could be a bit hairy as it might have to map api.github.com to https://github.com and github.foo.com/api/v3 to https://github.foo.com.

I am happy to do a PR on this, if you think it is worthwhile to go forward. If so, a couple quick questions:

  1. Are there other functions I would need to touch?
  2. I also see a problem in testing the code, as it would require a public enterprise version of github to test against. Would it be enough to do private, informal testing, and also (of course) ensure that any changes do not break the existing behavior?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions