Skip to content
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

Use octocrab for GraphQL queries #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jtietema
Copy link

@jtietema jtietema commented Feb 6, 2024

Remove the manual use of reqwest::Client for graphql queries and use octocrab instead.

This removes the need to specify the github api base url multiple times. We instead leverage the global octocrab instance for which we configure the api base url once.

This is beneficial for a cleaner implementation of Github Enterprise support (#158), as we can configure the base url once.

For an example of what GHE support could look like on top of this, here is a draft PR jtietema#1

Remove the manual use of reqwest::Client for graphql
queries and use octocrab instead.

This removes the need to specify the github api url
multiple times. We instead leverage the global octocrab
instance for which we configure the api url once.

This is beneficial for a cleaner implementation of
Github Enterprise support (spacedentist#158), as we can configure
the base url once.
jtietema added a commit to jtietema/spr that referenced this pull request Feb 6, 2024
This commit builds on the work down and feedback posted in
[spacedentist#158](spacedentist#158).

It also builds on using Octocrab for GraphQL changes in
[spacedentist#187](spacedentist#187)

It only sets a base_url if we explicitly specify one for Github Enterprise,
otherwise it will use the base url from octocrab for Github Cloud.
quodlibetor pushed a commit to quodlibetor/spr that referenced this pull request Aug 28, 2024
Remove the manual use of reqwest::Client for graphql
queries and use octocrab instead.

This removes the need to specify the github api url
multiple times. We instead leverage the global octocrab
instance for which we configure the api url once.

This is beneficial for a cleaner implementation of
Github Enterprise support (spacedentist#158), as we can configure
the base url once.
quodlibetor pushed a commit to quodlibetor/spr that referenced this pull request Sep 21, 2024
Remove the manual use of reqwest::Client for graphql
queries and use octocrab instead.

This removes the need to specify the github api url
multiple times. We instead leverage the global octocrab
instance for which we configure the api url once.

This is beneficial for a cleaner implementation of
Github Enterprise support (spacedentist#158), as we can configure
the base url once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant