shurcooL / githubv4

Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql).
MIT License
1.11k stars 89 forks source link

GitHub Enterprise support. #23

Closed dmitshur closed 6 years ago

dmitshur commented 6 years ago

GitHub Enterprise has support for GitHub GraphQL API as of 2.10:

Announcement: https://github.com/blog/2373-introducing-github-enterprise-2-10-build-tools-with-the-new-github-graphql-api-organize-with-topics-and-level-up-your-project-management. Documentation: https://developer.github.com/enterprise/2.10/v4/.

(Also see this thread for history behind GitHub GraphQL API support in GitHub Enterprise.)

We should support GitHub Enterprise.

dmitshur commented 6 years ago

The root GraphQL endpoint for GitHub Enterprise is custom:

The GraphQL endpoint

The REST API v3 has numerous endpoints; the GraphQL API v4 has a single endpoint:

http(s)://[hostname]/api/graphql

The endpoint remains constant no matter what operation you perform.

(Source: https://developer.github.com/enterprise/2.11/v4/guides/forming-calls/#the-graphql-endpoint.)

So we need to let the user provide it to githubql library.

yc1838 commented 1 year ago

Hey I am curious what should I put under host name?

CodyGirl commented 1 year ago

Hello Team, is there any Documentation or video about how to use this feature while creating a GitHub dashboard on grafana (for enterprise GitHub instances)?