Skip to content

Conversation

@jtietema
Copy link
Contributor

@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.
Copy link
Owner

@spacedentist spacedentist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@spacedentist spacedentist merged commit 9af64bb into spacedentist:master Apr 20, 2025
spacedentist added a commit that referenced this pull request Apr 20, 2025
We don't use the reqwest client anymore after #187. This PR removes some dead code and the reqwest dependency itself.
spacedentist added a commit that referenced this pull request Apr 20, 2025
We don't use the reqwest client anymore after #187. This PR removes some dead code and the reqwest dependency itself.
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.

2 participants