Rename the comments command to user-info and extend it#2317
Merged
Kobzol merged 10 commits intorust-lang:masterfrom Mar 2, 2026
Merged
Rename the comments command to user-info and extend it#2317Kobzol merged 10 commits intorust-lang:masterfrom
comments command to user-info and extend it#2317Kobzol merged 10 commits intorust-lang:masterfrom
Conversation
Urgau
reviewed
Mar 1, 2026
Urgau
approved these changes
Mar 2, 2026
Comment on lines
-1513
to
+1682
| .replace("`", ""); | ||
| // Avoid things that could interact with the rest of the Markdown message. | ||
| // And avoid and @ pings (in case the text is outputted in a public Zulip stream). | ||
| .replace("`", "") | ||
| .replace("@", ""); |
Member
There was a problem hiding this comment.
We should think about using pulldown_cmark to purely extract the text, instead of doing those hacky stripping.
Member
Author
There was a problem hiding this comment.
Yeah, good point. I'll do it later.
Collaborator
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Member
Author
|
Found some bugs when testing this on a user account outside of the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The compiler team has been discussing ways of quickly gathering some basic information about a GitHub account. This PR extends the previous
commentsZulip triagebot command and turns it into a more generaluser-infocommand, which shows recent activity (PRs, repository) and account creation date for the given GitHub user account.Here is how it currently looks like for my account:
User
kobzolactivity4661days ago)It4innovations,mrlvsb,rust-lang)rust-langPRs created in past 7 days: 7rust-langPRs created in the past 40 day(s)Recent comments in
rust-lang:rust#153131, time:2026-03-01T08:45:14+00:00):rustc-dev-guide#2785, time:2026-03-01T08:15:58+00:00):rust#152949, time:2026-02-28T22:11:11+00:00):rustc-dev-guide#2785, time:2026-02-28T21:01:35+00:00):rust#152949, time:2026-02-28T20:25:53+00:00):rustc-dev-guide#2785, time:2026-02-28T20:14:36+00:00):rustc-dev-guide#2785, time:2026-02-28T20:06:43+00:00):triagebot#1680, time:2026-02-27T22:21:14+00:00):rust#153131, time:2026-02-26T12:45:37+00:00):rust#153114, time:2026-02-26T06:38:59+00:00):