Show recent PRs when a user is banned#2313
Conversation
|
I personally prefer another style for titles in Markdown, it helps slightly reducing the visual clutter when there are other links the body, example: Recent PRs:
What do you think? (Not a big deal in any case) |
|
That looks good! I'll modify it in a follow-up PR. |
|
@Kobzol I got a notification on this PR, because you mentioned me in one of your last PRs. I assume this feature will be used somewhat often, so pinging a lot of people on a potential llm spam account seems counterproductive? |
|
Maybe triagebot can escape mentions (eg |
|
Sorry for the ping! Don't worry, you won't be pinged. This message is only shown in a private stream only available to mods. That being said, escaping @ is a good idea, as similar text might be shown on other Zulip command output. I'll escape it. |
|
Will be done in #2317. |
A related request was posted here, but in general I think that this might be useful. Similar code can also be reused for showing "recent user statistics", which I plan on working next.
This is how the output now looks like for me:
User
kobzolwas banned from therust-langorganization bykobzol.View user profile
Recent comments:
rust#153131, 2026-03-01 08:45 UTC):rustc-dev-guide#2785, 2026-03-01 08:15 UTC):rust#152949, 2026-02-28 22:11 UTC):rustc-dev-guide#2785, 2026-02-28 21:01 UTC):rust#152949, 2026-02-28 20:25 UTC):rustc-dev-guide#2785, 2026-02-28 20:14 UTC):rustc-dev-guide#2785, 2026-02-28 20:06 UTC):triagebot#1680, 2026-02-27 22:21 UTC):rust#153131, 2026-02-26 12:45 UTC):rust#153114, 2026-02-26 06:38 UTC):Recent PRs:
bors#705, 2026-02-28 20:04 UTC) 🟣rustc-dev-guide#2785, 2026-02-28 19:50 UTC) 🟣rust#153131, 2026-02-26 12:41 UTC) 🟢team#2269, 2026-02-26 10:14 UTC) 🟣team#2262, 2026-02-24 14:25 UTC) 🟣triagebot#2303, 2026-02-24 14:02 UTC) 🟣team#2261, 2026-02-20 19:32 UTC) 🟢rust#152838, 2026-02-19 08:30 UTC) 🟣google-summer-of-code#53, 2026-02-18 19:28 UTC) 🟣rust#152769, 2026-02-17 20:37 UTC) 🟣