Skip to content

Commit

Permalink
Remove versioning from API endpoint URL in discussions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalmeida1994 committed Nov 27, 2024
1 parent 798a1f6 commit 6683123
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 6683123

Please sign in to comment.