Skip to content

Sort commits by scope within changelog categories #525

Open
@alpha0010

Description

@alpha0010

Description

Changelog generation already separates commits by change type, but within each category, messages are produced in commit order. It would be nice to have an output format to sort messages alphabetically and/or group by scope.

Possible Solution

Current output:

### Fix

- **annotation**: render loses detail
- **android**: crash on invalid page count
- **meter**: parse fails to detect most meters
- handle footer line breaks
- **android**: support native dependency configuration
- **annotation**: text positioning and dot strokes

Desired option 1:

### Fix

- handle footer line breaks

#### Android

- crash on invalid page count
- support native dependency configuration

#### Annotation

- render loses detail
- text positioning and dot strokes

#### Meter

- parse fails to detect most meters

Desired option 2:

### Fix

- **android**: crash on invalid page count
- **android**: support native dependency configuration
- **annotation**: render loses detail
- **annotation**: text positioning and dot strokes
- **meter**: parse fails to detect most meters
- handle footer line breaks

From client side, I could implement this via changelog_hook(). However, that requires re-parsing the already parsed and formatted data. I could additionally hack changelog_message_builder_hook() to set message as JSON string, to later parse in changelog_hook().

Is there a cleaner way to handle this?

Additional context

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions