blob: 9790a4d0edf30ba48fd48b16db86f109a8cee7d0 (
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("prs2.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})""")
|