Skip to content

Commit

Permalink
chore: output flat list in markdown
Browse files Browse the repository at this point in the history
Change the script for listing PRs to also output PR links in markdown.
  • Loading branch information
jacderida committed Jul 25, 2024
1 parent b290766 commit e7753d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/scripts/list-safe-network-closed-prs.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ def main(last_released_pr_number):
closed_date = pr["closed_at"].date()
breaking_text = "[BREAKING]" if pr["breaking"] else ""
print(f"{closed_date} #{pr['number']} -- {pr['title']} [@{pr['author']}] {breaking_text}")
print("Flat list markdown:")
for pr in filtered_pulls:
pr_number = pr["number"]
closed_date = pr["closed_at"].date()
breaking_text = "[BREAKING]" if pr["breaking"] else ""
print(f"{closed_date} [#{pr_number}](https://github.com/maidsafe/safe_network/pull/{pr_number}) -- {pr['title']} [@{pr['author']}] {breaking_text}")

print()
grouped_pulls = defaultdict(list)
Expand Down

0 comments on commit e7753d3

Please sign in to comment.