Giteabot
6d348e57bc
fix(git): parse co-author trailers that are not RFC 5322 addresses ( #39076 ) ( #39081 )
...
Backport #39076 by @4RH1T3CT0R7
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
Co-authored-by: Artem Lytkin <146867384+4RH1T3CT0R7@users.noreply.github.com >
2026-08-24 22:01:07 +02:00
..
2026-05-26 15:49:31 -07:00
2026-06-18 20:48:27 +00:00
2026-06-12 07:35:59 +02:00
2023-02-04 10:30:43 +08:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2025-04-11 21:41:29 +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
2025-08-27 16:31:21 +00: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-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-01-08 13:37:36 -08:00
2025-05-09 16:17:08 +00:00
2026-05-07 16:19:45 +02:00
2026-05-13 09:00:41 +02:00
2026-06-21 13:57:22 +02:00
2026-06-21 13:57:22 +02:00
2026-01-08 13:37:36 -08:00
2025-07-31 09:34:51 +08:00
2026-08-24 22:01:07 +02:00
2026-08-24 22:01:07 +02:00
2026-05-07 16:19:45 +02:00
2026-05-07 16:19:45 +02:00
2025-07-30 07:08:59 +00:00
2026-05-26 15:49:31 -07:00
2026-02-16 09:57:18 +00:00
2026-06-11 18:08:55 +00:00
2026-06-11 18:08:55 +00:00
2024-11-20 19:26:12 +00:00
2024-11-20 19:26:12 +00:00
2026-06-22 18:29:06 +00:00
2026-07-22 18:14:16 +00:00
2025-06-18 01:48:09 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2026-02-08 20:25:30 +00:00
2026-07-22 18:14:16 +00:00
2026-05-26 15:49:31 -07:00
2025-08-27 16:31:21 +00: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
2023-12-13 21:02:00 +00:00
2026-06-21 13:57:22 +02:00
2026-05-26 15:49:31 -07:00
2026-06-21 13:57:22 +02:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2025-10-23 08:35:48 +00:00
2024-05-06 18:34:16 +02:00
2024-01-19 17:05:02 +01:00
2026-04-04 16:27:57 -07:00
2026-06-11 18:08:55 +00:00
2026-04-14 12:03:26 +00:00
2026-05-13 09:00:41 +02:00
2026-05-26 15:49:31 -07:00
2026-07-20 17:21:17 +02:00
2026-06-24 05:38:02 +00:00
2026-06-24 05:38:02 +00:00
2026-06-06 11:06:08 +00:00
2026-05-26 15:49:31 -07:00
2026-01-08 13:37:36 -08:00
2026-05-26 15:49:31 -07:00
2025-08-27 16:31:21 +00:00
2025-12-25 19:26:23 -08:00
2025-01-19 18:41:15 -05:00
2026-05-26 15:49:31 -07:00
2025-08-27 16:31:21 +00:00
2026-05-26 15:49:31 -07:00
2026-06-11 17:12:30 +00:00
2026-06-06 11:06:08 +00:00
2026-06-11 18:08:55 +00:00
2026-06-13 04:43:25 +00: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-06-11 18:08:55 +00:00
2026-05-26 15:49:31 -07:00
2026-05-26 15:49:31 -07:00
2023-12-13 21:02:00 +00:00
2026-05-26 15:49:31 -07:00
2025-08-27 16:31:21 +00:00
2026-06-12 18:27:38 +00:00
2025-08-27 16:31:21 +00: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-05-07 16:19:45 +02:00
2026-05-26 15:49:31 -07:00
2026-07-20 17:21:17 +02:00
2026-05-26 15:49:31 -07:00
2026-01-08 13:37:36 -08:00
2026-05-26 15:49:31 -07:00
2026-07-20 17:21:17 +02:00
2024-02-09 11:02:53 +08:00
2026-05-26 15:49:31 -07:00
2025-03-31 01:53:48 -04: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-05-07 16:19:45 +02:00
2026-05-26 15:49:31 -07:00
2025-11-05 17:48:38 +00:00
2025-07-01 06:55:36 +08:00
2026-05-26 15:49:31 -07:00
2026-05-13 09:00:41 +02:00
2025-12-25 19:26:23 -08:00
2026-04-14 12:03:26 +00:00
2026-05-26 15:49:31 -07:00
2026-04-14 12:03:26 +00:00
2026-05-26 15:49:31 -07:00
2025-11-05 17:48:38 +00:00
2026-06-06 11:06:08 +00:00
2025-08-27 16:31:21 +00:00
2026-05-26 15:49:31 -07:00
2025-07-30 07:08:59 +00:00
2026-05-26 15:49:31 -07:00