fix(crate): initial pr always included the entire changelog #11

Merged
kjuulh merged 1 commits from fix/initial-pr-pull-changelog into main 2023-08-04 15:04:10 +02:00
Showing only changes of commit 113e5282ef - Show all commits

View File

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