mirror of
https://github.com/orhun/git-cliff.git
synced 2025-01-05 15:58:24 +03:00
fix(changelog): use footers field as an array for the context
This commit is contained in:
parent
fa6a38b339
commit
3e5c23d342
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user