fix(crate): initial pr always included the entire changelog
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-08-04 15:01:32 +02:00
parent fa67dfeee3
commit 113e5282ef
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -149,7 +149,8 @@ impl ReleaseCommandHandler {
owner,
repository,
&next_version.to_string(),
&changelog_last_changes.unwrap(),
&changelog_last_changes
.ok_or(anyhow::anyhow!("could not get the latest changes"))?,
existing_pr,
)?
} else {
@ -164,7 +165,8 @@ impl ReleaseCommandHandler {
owner,
repository,
&next_version.to_string(),
&changelog,
&changelog_last_changes
.ok_or(anyhow::anyhow!("could not get the latest changes"))?,
branch,
)?
} else {