-
-
Notifications
You must be signed in to change notification settings - Fork 13
Group by PR label #17
Comments
Example: Before
AfterBug
Enhancement
|
Specifying titles: with:
labels:
breaking change: Breaking changes
bug: Bugs
enhancement: Enhancements
"-": Others Excluding non-PR commits: with:
labels:
bug: Bugs
"-": false |
Not sure if everyone includes PR numbers in the merge commit title though (squash or otherwise). Apart from that, this would be awesome, people also use major, minor, and patch too with this. with:
labels:
major: Breaking Changes
minor: Minor Changes
patch: Patches Not sure if we should still have |
Should |
Excluding by labels could be possible by having a symbol set to false, like in my last example: that was meant to be read as “take Bugs and discard any other commit without PR or without the Bug label” I think tittle-based exclusion is still useful and flexible (since it works on non-PR commits) If you want to exclude by label I’d prefer it as an additional |
That makes sense. |
This is going to be a problem, inputs can only be "string", "boolean", or "number", especially with |
That makes it uglier, but still possible: labels: 'bug,breaking change' However the object would have to be valid JSON: 🤢 labels: '{"bug":"Bugs","breaking change":"Breaking changes"}' |
Does this work? labels: |
{
"bug": "Bugs",
"breaking change": "Breaking changes"
} Or something similar? Sheesh, JSON inside YAML looks weird as hell! |
I found a less ugly way: labels: |
bug: Bugs
breaking change: Breaking changes It's relatively easy if you don't need to support quotes: labels.split(/\n/).map(line => line.split(/\s*:\s*/));
// -> [['bug', 'Bugs'], ['breaking change': 'Breaking changes']
// TODO: minimal validation of input so it doesn't silently ignore errors Alternatively it can still support JSON for more complex requirements 👌 |
This is probably not an easy feature, but it might make the release notes a little better.
What if it used some PR’s labels to group the commits?
<hr>
or\n\n
The text was updated successfully, but these errors were encountered: