Skip to content

Commit

Permalink
perf(changelog): process only the last 'previous' release
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 13, 2021
1 parent 718f535 commit f859747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-cliff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ pub fn run(mut args: Opt) -> Result<()> {
releases[release_index].version = Some(tag.to_string());
releases[release_index].commit_id = Some(commit_id);
releases[release_index].timestamp = git_commit.time().seconds();
previous_release.previous = None;
releases[release_index].previous = Some(Box::new(previous_release));
previous_release = releases[release_index].clone();
release_index += 1;
Expand Down

0 comments on commit f859747

Please sign in to comment.