fix: maybe check the message of the current commit instead

This commit is contained in:
D. Moonfire 2024-03-10 18:04:03 -05:00
parent 30341b45ff
commit 4631ae09b2

View file

@ -136,6 +136,7 @@ impl VersionCommand {
} }
// Parse the message to see if we need to modify the bump. // Parse the message to see if we need to modify the bump.
let commit = repo.find_commit(oid)?;
let message = commit.message().unwrap_or(""); let message = commit.message().unwrap_or("");
let conv = ConventionalCommit::from_str(message)?; let conv = ConventionalCommit::from_str(message)?;
let commit_bump = self.get_version_bump(&conv); let commit_bump = self.get_version_bump(&conv);