blob: b41d551e1d29731b9a76caf8d3bf56adf934e45e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
"""Print all PRs in saved JSON file in Markdown list for CHANGELOG"""
import json
with open("prs.json") as f:
for pr in sorted(json.load(f), key=lambda k: k["merged_at"], reverse=True):
if not pr["title"].startswith("Bump"):
id = pr["url"].replace(
"https://api.github.com/repos/RDFLib/rdflib/pulls/", ""
)
u = f"https://github.com/RDFLib/rdflib/pull/{id}"
print(f"""* {pr['title']}\n [PR #{id}]({u})""")
|