Skip to content

Conversation

@jtietema
Copy link
Owner

@jtietema jtietema commented Feb 6, 2024

This commit builds on the work down and feedback posted in #158.

It also builds on using Octocrab for GraphQL changes in #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.

andrewhamon and others added 3 commits April 1, 2023 15:22
- add a config value spr.githubApiDomain
- collect this during spr init
- update regex to not expect 'github.com'
- generate PR urls correctly

Test plan:
Manually tested on my companies github enterprise
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.
spacedentist added a commit to spacedentist/spr that referenced this pull request Apr 20, 2025
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

---------

Co-authored-by: Sven Over <sp@cedenti.st>
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.

3 participants