-
Notifications
You must be signed in to change notification settings - Fork 10
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
tools,meta: make AUTHORS reflect all the contributors #88
Changes from 2 commits
8915cd7
301c1f1
6445ba7
d061b0d
f608140
8e305bb
943a831
8a4ce32
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Timur Shemsedinov <timur.shemsedinov@gmail.com> | ||
Alexey Orlenko <eaglexrlnk@gmail.com> | ||
Mykola Bilochub <nbelochub@gmail.com> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
Timur Shemsedinov <timur.shemsedinov@gmail.com> | ||
Dimon Durak <Dimon Durak> | ||
Artem Chernenkiy <notthewhite@gmail.com> | ||
Alexey Orlenko <eaglexrlnk@gmail.com> | ||
Mykola Bilochub <nbelochub@gmail.com> | ||
Vlad <Dzyubavlad@gmail.com> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DzyubSpirit please check if you email is correct here. And how would you prefer your full name to be spelled? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Email is correct and I prefer to be Dzyuba WhatIsLove. Thanks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DzyubSpirit I think we prefer real names unless you have strong reasons to not be called Vlad Dzyuba. I was asking about the correct spelling of your last name, actually :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @aqrln, okey. Right spelling of my last name is Dziuba. Let it be this way. My email case does not matter, so you can do what it is needed with it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DzyubSpirit done. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Common utilities used by tools | ||
'use strict'; | ||
|
||
const childProcess = require('child_process'); | ||
const fs = require('fs'); | ||
|
||
const common = {}; | ||
module.exports = common; | ||
|
||
common.getCommandOutput = (cmd) => { | ||
const exec = common.promisify(childProcess.exec); | ||
return exec(cmd).then((stdout, stderr) => { | ||
if (stderr) console.error(stderr); | ||
return stdout; | ||
}); | ||
}; | ||
|
||
common.promisify = (fn) => (...args) => ( | ||
new Promise((resolve, reject) => { | ||
fn(...args, (error, ...result) => { | ||
if (error) reject(error); | ||
else resolve(...result); | ||
}); | ||
}) | ||
); | ||
|
||
common.writeFile = common.promisify(fs.writeFile); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict'; | ||
|
||
const path = require('path'); | ||
const { getCommandOutput, writeFile } = require('./common'); | ||
|
||
const AUTHORS_PATH = path.resolve(__dirname, '..', 'AUTHORS'); | ||
|
||
getCommandOutput('git log --reverse --format="%aN <%aE>"').then((out) => { | ||
const seen = new Set(); | ||
const authors = out.split('\n').reduce((list, author) => { | ||
if (!seen.has(author)) { | ||
list.push(author); | ||
seen.add(author); | ||
} | ||
return list; | ||
}, []); | ||
return writeFile(AUTHORS_PATH, authors.join('\n')); | ||
}).catch((error) => { | ||
const message = error.stack || error.toString(); | ||
console.error(message); | ||
process.exit(1); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dimon-durak can you please provide your real name and email if you want to be included to the list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dimon-durak ping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dmitry Borisov
dimon.durak@gmail.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've added an entry for you in
.mailmap
and regenerated the list of contributors.