Artem Lytkin and GitHub
2a17cf7ded
fix(git): parse co-author trailers that are not RFC 5322 addresses ( #39076 )
...
Bot co-authors like `dependabot[bot]` render as one long string with the
email inside the name, and never get truncated, so they overflow the
column.
Co-author idents are parsed with `net/mail`, but a git ident isn't an
email address. `mail.ParseAddress` rejects the whole value when the name
holds characters RFC 5322 reserves, like a `[bot]` suffix or a comma, so
the error branch keeps the raw trailer as the display name and throws
the address away. No address means no `mailto:` link, and the anchor is
what `.avatar-stack-names` truncates.
So parse the angle-addr ourselves when `net/mail` won't take it.
Splitting on the last `<` is safe because git strips angle brackets from
idents. The bare-name branch gets the class too.
Fixes https://github.com/go-gitea/gitea/issues/38949
2026-08-24 19:06:30 +00:00
..
2026-08-20 19:06:21 +00:00
2026-02-01 10:35:51 +00:00
2026-08-09 10:25:06 +00:00
2026-08-07 00:11:34 +00:00
2026-08-24 18:26:10 +00:00
2026-05-26 15:49:31 -07:00
2026-08-22 09:40:49 +00:00
2026-08-09 10:25:06 +00:00
2025-04-09 16:34:38 +00:00
2026-07-30 16:43:36 +00:00
2026-03-31 17:22:18 +00:00
2026-06-08 18:18:58 +00:00
2026-07-24 02:05:38 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-07-23 08:29:28 +00:00
2026-07-15 17:30:01 +00:00
2026-06-08 18:18:58 +00:00
2026-08-24 19:06:30 +00:00
2026-08-09 10:25:06 +00:00
2026-08-09 10:25:06 +00:00
2026-08-12 10:42:26 +00:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2026-08-06 18:07:36 +08:00
2026-07-12 17:14:09 +00:00
2026-08-17 17:43:34 +00:00
2026-06-04 00:12:02 +08:00
2026-06-04 00:12:02 +08:00
2026-08-17 07:59:41 +00:00
2026-08-19 14:15:42 +08:00
2026-08-24 07:28:17 +00:00
2026-05-29 01:12:11 +00:00
2026-08-11 11:47:20 +02:00
2026-07-17 22:28:59 +08:00
2026-08-24 18:26:10 +00:00
2026-08-12 19:30:26 +00:00
2026-07-21 13:41:54 +00:00
2026-05-26 15:49:31 -07:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2026-05-29 01:12:11 +00:00
2026-05-26 15:49:31 -07:00
2026-08-24 07:28:17 +00:00
2026-06-03 17:40:38 +00:00
2026-07-17 22:28:59 +08:00
2026-08-19 14:15:42 +08:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-08-03 04:40:02 +00:00
2026-08-22 01:30:41 +00:00
2026-05-26 15:49:31 -07:00
2026-07-08 23:52:06 +02:00
2026-05-26 15:49:31 -07:00
2026-08-22 08:59:37 +00:00
2026-08-09 10:25:06 +00:00
2025-02-21 00:05:40 +08:00
2026-08-09 10:25:06 +00:00
2026-08-24 18:26:10 +00:00
2026-06-14 18:26:22 +00:00
2026-08-09 11:32:50 +00:00
2026-08-07 16:35:30 +00:00
2026-08-24 18:26:10 +00:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2025-01-21 18:57:07 +00:00
2026-07-23 14:31:29 +00:00
2026-08-24 19:06:30 +00:00
2026-08-22 11:04:35 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-08-19 12:50:06 +00:00
2026-08-09 10:25:06 +00:00
2026-03-26 00:37:48 +08:00
2026-05-26 15:49:31 -07:00
2026-07-12 17:14:09 +00:00
2025-01-09 09:21:47 +08:00
2026-08-24 18:26:10 +00:00
2026-08-24 18:26:10 +00:00
2026-08-24 18:26:10 +00:00
2026-02-20 16:12:22 +00:00
2026-06-04 13:38:56 +00:00