Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 36.4k
tools,doc: update authors script + list#22771
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -131,6 +131,7 @@ Gabriel de Perthuis <g2p.code@gmail.com> | ||
| Gareth Ellis <gareth.ellis@uk.ibm.com> <gareth@gsellis.com> | ||
| Garwah Lam <garwahlam@gmail.com> | ||
| Geoffrey Bugaisky <gbugaisk@gmail.com> gbugaisky <gbugaisk@gmail.com> | ||
| Gerhard Stoebich <deb2001-github@yahoo.de> | ||
| Gibson Fahnestock <gibfahn@gmail.com> <gib@uk.ibm.com> | ||
| Gil Pedersen <git@gpost.dk> <github@gpost.dk> | ||
| Graham Fairweather <xotic750@gmail.com> Xotic750 <xotic750@gmail> | ||
| @@ -204,6 +205,7 @@ Jérémy Lal <kapouer@melix.org> <holisme@gmail.com> | ||
| Juan Sebastian Velez Posada <sebasvelez@gmail.com> | ||
| Kai Sasaki Lewuathe <sasaki_kai@lewuathe.sakura.ne.jp> | ||
| Karl Skomski <karl@skomski.com> <mail@skomski.com> | ||
| Kat Marchán <kzm@zkat.tech> <kzm@sykosomatic.org> | ||
| Kathy Truong <kathy.yvy.truong@gmail.com> k3kathy <kathy.yvy.truong@gmail.com> | ||
| Kazuyuki Yamada <tasogare.pg@gmail.com> | ||
| Keith M Wesolowski <wesolows@joyent.com> <wesolows@foobazco.org> | ||
| @@ -237,6 +239,7 @@ Matheus Marchini <matheusdot@gmail.com> <matheus@sthima.com.br> | ||
| Matheus Marchini <matheusdot@gmail.com> <matheus@sthima.com> | ||
| Matt Lang <matt@mediasuite.co.nz> matt-in-a-hat <matt@mediasuite.co.nz> | ||
| Matt Reed <matthewreed26@gmail.com> matthewreed26 <matthewreed26@gmail.com> | ||
| Matteo Collina <matteo.collina@gmail.com> <hello@matteocollina.com> | ||
addaleax marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| Matthias Bastian <dev@matthias-bastian.de> piepmatz <piepmatz@users.noreply.github.com> | ||
| Mathias Buus <mathiasbuus@gmail.com> <m@ge.tt> | ||
| Mathias Pettersson <mape@mape.me> | ||
| @@ -363,6 +366,7 @@ Tadashi SAWADA <cesare@mayverse.jp> | ||
| Takahiro ANDO <takahiro.ando@gmail.com> | ||
| Tarun Batra <tarun.batra00@gmail.com> Tarun <tarun.batra00@gmail.com> | ||
| Ted Young <ted@radicaldesigns.org> | ||
| Teppei Sato <teppeis@gmail.com> | ||
| Thomas Hunter II <me@thomashunter.name> <tom@intrinsic.com> | ||
| Thomas Lee <thomas.lee@shinetech.com> <tom@tom-debian.sensis.com.au> | ||
| Thomas Reggi <thomas@reggi.com> | ||
| @@ -390,7 +394,8 @@ Vladimir de Turckheim <vlad2t@hotmail.com> | ||
| vsemozhetbyt <vsemozhetbyt@gmail.com> Vse Mozhet Byt <vsemozhetbyt@gmail.com> | ||
| Wang Xinyong <wang.xy.chn@gmail.com> <wangxy.chn@gmail.com> | ||
| Weijia Wang <381152119@qq.com> | ||
| Weijia Wang <381152119@qq.com> starkewang <starkewang@tencent.com> | ||
| Weijia Wang <381152119@qq.com> <starkwang@126.com> | ||
| Weijia Wang <381152119@qq.com> <starkewang@tencent.com> | ||
| Wei-Wei Wu <wuxx1045@umn.edu> | ||
| Willi Eggeling <email@wje-online.de> | ||
| Will Hayslett <william.hayslettjr@gmail.com> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| #!/usr/bin/env node | ||
targos marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| // Usage: tools/update-author.js [--dry] | ||
| // Passing --dry will redirect output to stdout rather than write to 'AUTHORS'. | ||
| 'use strict'; | ||
| const { spawn } = require('child_process'); | ||
| const fs = require('fs'); | ||
| const readline = require('readline'); | ||
| const log = spawn( | ||
| 'git', | ||
| // Inspect author name/email and body. | ||
| ['log', '--reverse', '--format=Author: %aN <%aE>\n%b'], { | ||
| stdio: ['inherit', 'pipe', 'inherit'] | ||
| }); | ||
| const rl = readline.createInterface({ input: log.stdout }); | ||
| let output; | ||
| if (process.argv.includes('--dry')) | ||
| output = process.stdout; | ||
| else | ||
| output = fs.createWriteStream('AUTHORS'); | ||
| output.write('# Authors ordered by first contribution.\n\n'); | ||
| const seen = new Set(); | ||
| // Support regular git author metadata, as well as `Author:` and | ||
| // `Co-authored-by:` in the message body. Both have been used in the past | ||
| // to indicate multiple authors per commit, with the latter standardized | ||
| // by GitHub now. | ||
| const authorRe = | ||
| /(^Author:|^Co-authored-by:)\s+(?<author>[^<]+)\s+(?<email><[^>]+>)/i; | ||
| rl.on('line', (line) => { | ||
| const match = line.match(authorRe); | ||
| if (!match) return; | ||
| const { author, email } = match.groups; | ||
| if (seen.has(email) || | ||
| /@chromium\.org/.test(email) || | ||
| email === '<erik.corry@gmail.com>') { | ||
| return; | ||
| } | ||
| seen.add(email); | ||
| output.write(`${author} ${email}\n`); | ||
| }); | ||
| rl.on('close', () => { | ||
| output.end('\n# Generated by tools/update-authors.js\n'); | ||
| }); | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
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.
@zkat Can you confirm that this is your preferred email now? :)