From f4f7a69069b4c69987f58f031ae5c3b10429e8a8 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Fri, 1 May 2020 01:28:40 -0700 Subject: [PATCH] Add `co-authored-by` field to commit metadata This field is used by GitHub to credit co-authors. type: development co-authored-by: y7y --- bin/gen/src/metadata.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/gen/src/metadata.rs b/bin/gen/src/metadata.rs index 47fbec5..332bbb7 100644 --- a/bin/gen/src/metadata.rs +++ b/bin/gen/src/metadata.rs @@ -8,6 +8,8 @@ pub(crate) struct Metadata { pub(crate) pr: Option, #[serde(default)] pub(crate) fixes: Vec, + #[serde(default, rename = "co-authored-by")] + pub(crate) co_authored_by: Option, } impl Metadata { @@ -41,6 +43,7 @@ impl Default for Metadata { kind: Kind::Changed, pr: None, fixes: Vec::new(), + co_authored_by: None, } } }