Skip to content

Commit ef7746c

Browse files
Specify the github API version (#27)
1 parent 94dd48a commit ef7746c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _now() -> str:
6060
def _poll(webhook_url: str, tracker_path: pathlib.Path, api_url: str, params: dict[str, str], last_update: str) -> str:
6161
params = {**params, "since": last_update}
6262

63-
with requests.get(api_url, params=params) as resp:
63+
with requests.get(api_url, params=params, headers={"X-GitHub-Api-Version": "2022-11-28"}) as resp:
6464
resp.raise_for_status()
6565
data = typing.cast("list[Commit]", resp.json())
6666
logging.info("GITHUB: %s %s", resp.status_code, resp.reason)

0 commit comments

Comments
 (0)