|
1 | 1 | import os |
2 | 2 | import shelve |
3 | 3 |
|
4 | | -import requests |
| 4 | +import httpx |
5 | 5 | import yaml |
6 | 6 | from hikari import ForumTag, GuildForumChannel |
7 | 7 | from hikari.impl import RESTClientImpl |
@@ -48,7 +48,7 @@ async def fetch_item_name(item_node_id: str | None) -> str | None: |
48 | 48 |
|
49 | 49 | variables = {"id": item_node_id} |
50 | 50 |
|
51 | | - response = requests.post( |
| 51 | + response = httpx.post( |
52 | 52 | "https://api.github.com/graphql", |
53 | 53 | json={"query": query, "variables": variables}, |
54 | 54 | headers={"Authorization": f"Bearer {os.getenv('GITHUB_TOKEN')}"}, |
@@ -97,7 +97,7 @@ async def fetch_assignees(item_node_id: str | None) -> list[str]: |
97 | 97 |
|
98 | 98 | variables = {"id": item_node_id} |
99 | 99 |
|
100 | | - response = requests.post( |
| 100 | + response = httpx.post( |
101 | 101 | "https://api.github.com/graphql", |
102 | 102 | json={"query": query, "variables": variables}, |
103 | 103 | headers={"Authorization": f"Bearer {os.getenv('GITHUB_TOKEN')}"}, |
@@ -131,7 +131,7 @@ def fetch_single_select_value(item_node_id: str | None, field_name: str | None) |
131 | 131 |
|
132 | 132 | variables = {"id": item_node_id, "field_type": field_name} |
133 | 133 |
|
134 | | - response = requests.post( |
| 134 | + response = httpx.post( |
135 | 135 | "https://api.github.com/graphql", |
136 | 136 | json={"query": query, "variables": variables}, |
137 | 137 | headers={"Authorization": f"Bearer {os.getenv('GITHUB_TOKEN')}"}, |
|
0 commit comments