diff --git a/gitfive/lib/commits.py b/gitfive/lib/commits.py index 65b231c..1a4e5b6 100644 --- a/gitfive/lib/commits.py +++ b/gitfive/lib/commits.py @@ -1,3 +1,5 @@ +import json + import trio from bs4 import BeautifulSoup from alive_progress import alive_bar @@ -8,11 +10,54 @@ from gitfive.lib.instruments import TrioAliveProgress +def _extract_payload(raw_body: str): + """ + The new GitHub commits page renders an embedded JSON payload inside a + `