Skip to content

Conversation

mcasimir
Copy link
Collaborator

  • Adds a script that generates AUTHORS files form git log
  • Regenerate all AUTHORS files


function getAuthorsGitLog(packagePath) {
return execSync(
`bash -c "git log --format='%aN <%aE>' -- ${packagePath} | grep -v "users.noreply.github.com" | sort -f | uniq"`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fwiw, if you want to use aliases, you can use git log --use-mailmap and then use a .mailmap file as a standardized format that git understands for mapping aliases, like https://github.com/nodejs/node/blob/master/.mailmap

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Much better

mcasimir and others added 2 commits September 21, 2020 10:19
Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
@mcasimir mcasimir merged commit e99e1d6 into master Sep 21, 2020
@mcasimir mcasimir deleted the add-anna-henningsen-to-authors branch September 21, 2020 09:16
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.

2 participants