orhun/git-cliff

Generate multiple changelogs in different formats

開放

#572 建立於 2024年3月23日

 (12 則留言) (7 個反應) (0 位負責人)Rust (308 個分叉)auto 404
feature/requestgood first issue

倉庫指標

星標
 (12,040 顆星)
PR 合併指標
 (平均合併 27天 17小時) (30 天內合併 9 個 PR)

描述

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

貢獻者指南