orhun/git-cliff

Generate multiple changelogs in different formats

Ouverte

#572 ouverte le 23 mars 2024

 (12 commentaires) (7 réactions) (0 personne assignée)Rust (308 forks)auto 404
feature/requestgood first issue

Métriques du dépôt

Stars
 (12 040 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Is there an existing issue or pull request for this?

  • I have searched the existing issues and pull requests

Feature description

I am currently evaluating git-cliff as a possible changelog generator for future projects. A lot of the binary (as opposed to library) Rust projects I write use two changelog files, one in markdown format for GitHub/GitLab display and one in Debian format for cargo-deb Debian packages.

It would be useful to have the option to specify multiple outputs in the git-cliff config to cover use cases like this where multiple downstream tooling options each have their own prescribed changelog formats.

Desired solution

Some way to have multiple distinct sections in the cliff.toml for outputs. I am not that familiar with the config file format yet but most likely just having a TOML array of tables for the changelog section would be enough but I don't understand the tool well enough yet to know if values from other sections might also have to be duplicated.

Alternatives considered

It might be possible to just call git-cliff twice with different config files but then some of the work is done twice and some of the config is essentially in whatever script contains those calls.

Additional context

No response

Guide contributeur