Skip to content

Commit

Permalink
Merge pull request #432 from Jalmeida1994/bug/remove-v3-from-graphql-…
Browse files Browse the repository at this point in the history
…api-path

fix(GHES): Remove versioning from GraphQL API endpoint URL in discussions.py
  • Loading branch information
jmeridth authored Nov 27, 2024
2 parents 798a1f6 + 6683123 commit c0b6fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discussions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_discussions(token: str, search_query: str, ghe: str):
variables = {"query": search_query}

# Send the GraphQL request
api_endpoint = f"{ghe}/api/v3" if ghe else "https://api.github.com"
api_endpoint = f"{ghe}/api" if ghe else "https://api.github.com"
headers = {"Authorization": f"Bearer {token}"}
response = requests.post(
f"{api_endpoint}/graphql",
Expand Down

0 comments on commit c0b6fb2

Please sign in to comment.