executablebooks / github-activity

Simple markdown changelogs for GitHub repositories
https://github-activity.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
47 stars 11 forks source link

Include release notes from the pull request body in markdown output #69

Open choldgraf opened 1 year ago

choldgraf commented 1 year ago

Context

Currently our markdown changelog creator will just capture the Pull Request title, link, and author. However I've heard that some communities would also like to automate the "Release Notes" part of their release cycle by embedding a description of the PR in the PR's top comment. This would let you generate the more "narrative" release notes when you merged the PR, so that you don't have to do as much context-switching when a release is made.

Proposal

We could implement a flag like --include-release-notes that would do the following:

So the output would go from this:

- [Some PR title](some link)

to this

- [Some PR title](some link)

   The contents of the # Release Notes block.

Tasks and updates

No response

choldgraf commented 1 year ago

cc @tupui and @stefanv who originally mentioned this, maybe they have comments?

edit: I actually don't think this would be that complex, started playing around with a PR here: