Skip to content

Commit 6683123

Browse files
committed
Remove versioning from API endpoint URL in discussions.py
1 parent 798a1f6 commit 6683123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discussions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_discussions(token: str, search_query: str, ghe: str):
5151
variables = {"query": search_query}
5252

5353
# Send the GraphQL request
54-
api_endpoint = f"{ghe}/api/v3" if ghe else "https://api.github.com"
54+
api_endpoint = f"{ghe}/api" if ghe else "https://api.github.com"
5555
headers = {"Authorization": f"Bearer {token}"}
5656
response = requests.post(
5757
f"{api_endpoint}/graphql",

0 commit comments

Comments
 (0)