Skip to content

Commit

Permalink
fix(changelog): use footers field as an array for the context
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jul 18, 2021
1 parent fa6a38b commit 3e5c23d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion git-cliff-core/src/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,15 @@ impl Serialize for Commit<'_> {
Some(conv) => {
commit.serialize_field("message", conv.description())?;
commit.serialize_field("body", &conv.body())?;
commit.serialize_field("footer", conv.footers())?;
commit.serialize_field(
"footers",
&conv
.footers()
.to_vec()
.iter()
.map(|f| f.value())
.collect::<Vec<&str>>(),
)?;
commit.serialize_field(
"group",
self.group.as_ref().unwrap_or(&conv.type_().to_string()),
Expand Down

0 comments on commit 3e5c23d

Please sign in to comment.