Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for removing users' names upon request #58

Closed
wants to merge 1 commit into from

Conversation

jhpratt
Copy link
Member

@jhpratt jhpratt commented Sep 9, 2023

cc rust-lang/team#1071

I did not do anything about this user having four instances, as that's completely up to the .mailmap, which is not included in this repository.

What this PR does is maintains a list of name-email pairs that have been requested to be removed. If it matches, "[removed]" is output instead of the person's name. Per the user's request, that seems to be sufficient. I'm not sure what else could be done, as the history does exist in git.

Note that this does not remove the entry altogether; it merely removes the name from being displayed.

@jonas-schievink
Copy link

It might be better to map them to a single invalid user via the .mailmap, like in rust-lang/rust#115702

@jhpratt
Copy link
Member Author

jhpratt commented Sep 9, 2023

I kept them separate so that if there are others in the future, they're not incorrectly merged into a single person. This maintains the positions and numbers more accurately.

I'll update this when I get a chance to factor in the mailmap update from you.

use mailmap::Author;

lazy_static::lazy_static! {
static ref REMOVED: HashSet<mailmap::Author> = HashSet::from_iter([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: probably add a comment linking to the teams repo PR so this can be found again when someone inevitably asks what this is for in a couple years

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oddly enough I intended to do this and totally forgot.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 11, 2023
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 11, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 11, 2023
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Sep 11, 2023
Rollup merge of rust-lang#115702 - jonas-schievink:update-mailmap, r=oli-obk

Update mailmap

rust-lang/team#1071 / rust-lang/thanks#58
@jhpratt
Copy link
Member Author

jhpratt commented Sep 17, 2023

Given that updating the mailmap seems to handle this in an identical manner, I am closing this.

@jhpratt jhpratt closed this Sep 17, 2023
@jhpratt jhpratt deleted the remove-user branch September 17, 2023 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants