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

Update the authors script to generate the content of authors.md #36867

Merged
merged 1 commit into from Feb 27, 2020

Conversation

orta
Copy link
Contributor

@orta orta commented Feb 19, 2020

This file is now entirely auto-generated. I made a quick script with all the old names in to verify they are all in there from the file before I automated it afterwards.

Personally, I'm open to killing the mailmap file and making this script generate this file entirely - but for now this is good enough, we'll see where that conversation goes in teams.

@@ -162,6 +165,16 @@ namespace Commands {
console.log("=====================");
deduplicate(unknownAuthors).sort(sortAuthors).forEach(log);
}


const allAuthors = deduplicate([...knownAuthors, ...unknownAuthors].map(a => a.split("<")[0])).sort(sortAuthors);
Copy link
Member

@DanielRosenwasser DanielRosenwasser Feb 19, 2020

Choose a reason for hiding this comment

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

If you split by < and pipe to a file, does that mean you'll end up with trailing whitespace on certain lines?

Copy link
Contributor Author

@orta orta Feb 19, 2020

Choose a reason for hiding this comment

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

I'll trim to make sure anyway, though this isn't pipeable because it's part of a longer list command

@orta
Copy link
Contributor Author

@orta orta commented Feb 27, 2020

This actually greened on Travis, so I'm merging 👍

@orta orta merged commit e804dc8 into microsoft:master Feb 27, 2020
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants