Co-authored-by trailers must be the last trailers

I maintain a git linting tool, and one of our users has spotted a bug in the Co-authored-by implementation.

They only work if they are the last trailers. Git supports many arbitrary trailers, so it would be better do be a bit less strict about what you consider a trailer

Example

Add Payment to the module

[#12312312]

Co-authored-by: Txx Lxxx <txx.lxxx@example.com>

Shows a two avatars

Extract payment notification handling into class

Co-authored-by: Txx Lxxx <txx.lxxx@example.com>

Relates-to: [#12312312]

Does not

1 Like

For future explorers, this is related to the space between the trailers. Not the trailer order.