pub fn parse_description_trailers(body: &str) -> Vec<Trailer>
Expand description
Parse the trailers from a commit message; these are simple key-value pairs, separated by a colon, describing extra information in a commit message; an example is the following:
chore: update itertools to version 0.14.0
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
Co-authored-by: Alice <alice@example.com>
Co-authored-by: Bob <bob@example.com>
Reviewed-by: Charlie <charlie@example.com>
Change-Id: I1234567890abcdef1234567890abcdef12345678
In this case, there are four trailers: two Co-authored-by
lines, one
Reviewed-by
line, and one Change-Id
line.