Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rerender a specific tag/unreleased in the changelog #433

Open
ruben-arts opened this issue Jan 4, 2024 · 2 comments
Open

Rerender a specific tag/unreleased in the changelog #433

ruben-arts opened this issue Jan 4, 2024 · 2 comments
Assignees
Labels
feature/request New feature or request

Comments

@ruben-arts
Copy link

Describe the solution you'd like

I would like to use git-cliff in a GitHub action that runs after every merged PR. Updating the [unreleased] section.
My initial instinct was that using the --prepend would have this behavior.

Describe alternatives you've considered

I could write some find replace code to manually do the replacement using the output of git-cliff.

Additional context

Example of the wokflow I'm looking for:

# CHANGELOG

## [1.2.3]
- change by @person in #1234
git merge feature/x
git-cliff -u --prepend changelog.md
# CHANGELOG

## [unreleased]
- feature x by @person in #1235

## [1.2.3]
- change by @person in #1234
git merge feature/y
git-cliff -u --prepend changelog.md
# CHANGELOG

## [unreleased]
- feature y by @person in #1236
- feature x by @person in #1235

## [1.2.3]
- change by @person in #1234
@ruben-arts ruben-arts added the feature/request New feature or request label Jan 4, 2024
Copy link

welcome bot commented Jan 4, 2024

Thanks for opening your first issue at git-cliff! Be sure to follow the issue template! ⛰️

@orhun
Copy link
Owner

orhun commented Mar 13, 2024

Also reported in #544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants