Skip to content

Commit

Permalink
Specify the github API version (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding authored Apr 7, 2024
1 parent 94dd48a commit ef7746c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _now() -> str:
def _poll(webhook_url: str, tracker_path: pathlib.Path, api_url: str, params: dict[str, str], last_update: str) -> str:
params = {**params, "since": last_update}

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

0 comments on commit ef7746c

Please sign in to comment.