woodpecker-ci / plugin-ready-release-go

Automatically creates release pull-request which when merged will trigger a release
MIT License
3 stars 2 forks source link

Feature Idea: Way to include PR comments in final release #203

Open Andre601 opened 1 month ago

Andre601 commented 1 month ago

The way I understand the plugin right now are you required to edit the actual changelog.md file before merging to have any comments you want included in the final release (Or would it be editing the PR comment itself?).

I feel like it would be a more useful option to have the action simply include comments made in the Release Pull request.

To avoid abuse/spam should this be an option for the release-config.ts file. Something such as includedCommentAuthors: [<list of author names>] to define users who's comments should be included and maybe also a excludeCommentKey: "<text to exclude the comment for>" to exclude comments containing the provided key (Default could be a html comment like <!-- Ready-release EXCLUDE --> or similar).

Here a quick example with a Mockup GitHub repository called Example/Example with user Example being allowed as commenter.

This would help people who use the release's body for things such as releases on other sites, but don't want to first edit the file/comment to make sure the extra info is included.

I hope this is technically doable.