Create class for turning commit messages into changelog section entries
For &351 (closed) we need a class that takes a list of commits as input, and generates changelog section entries as output. The output should be some sort of list of objects that we can use to update the parsed changelog (#1369 (closed)).
Each changelog entry is a summary (the commit title), with associated data such as the commit author, the merge request, etc.
The output is an object with two fields:
- categorized: a Hash in the form
{ category => [entry, ...] }
- uncategorized: an Array in the form
[entry, ...]
If a commit belongs to a section category (based on the output of #1364 (closed)), it is assigned to the categorized
field. If no category is present, it goes in uncategorized
.
This output can then be used to update the changelog using #1370 (closed).
Edited by Yorick Peterse