Skip to content

Commit

Permalink
Add co-authored-by field to commit metadata
Browse files Browse the repository at this point in the history
This field is used by GitHub to credit co-authors.

type: development
co-authored-by: y7y <pair@rodarmor.com>
  • Loading branch information
casey and y7y committed May 1, 2020
1 parent e7872f5 commit f4f7a69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/gen/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -41,6 +43,7 @@ impl Default for Metadata {
kind: Kind::Changed,
pr: None,
fixes: Vec::new(),
co_authored_by: None,
}
}
}
Expand Down

0 comments on commit f4f7a69

Please sign in to comment.