Add co-authored-by field to commit metadata

This field is used by GitHub to credit co-authors.

type: development
co-authored-by: y7y <pair@rodarmor.com>
This commit is contained in:
Casey Rodarmor 2020-05-01 01:28:40 -07:00
parent e7872f56f2
commit f4f7a69069
No known key found for this signature in database
GPG Key ID: 556186B153EC6FE0

View File

@ -8,6 +8,8 @@ pub(crate) struct Metadata {
pub(crate) pr: Option<Url>,
#[serde(default)]
pub(crate) fixes: Vec<Url>,
#[serde(default, rename = "co-authored-by")]
pub(crate) co_authored_by: Option<String>,
}
impl Metadata {
@ -41,6 +43,7 @@ impl Default for Metadata {
kind: Kind::Changed,
pr: None,
fixes: Vec::new(),
co_authored_by: None,
}
}
}