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

Improvements for update-authors.py #3110

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,62 @@ Adrian Likins <[email protected]>
Alexander Saprykin <[email protected]>
Andrew Crosby <[email protected]>
Brian Coca <[email protected]>
Brian McLaughlin <[email protected]>
Bruno Rocha <[email protected]>
Calvin Spealman <[email protected]>
Chris Church <[email protected]>
Chris Houseknecht <[email protected]>
Chris Meyers <[email protected]>
Christopher Chase <[email protected]>
Chyna Sanders <[email protected]>
David Davis <[email protected]>
David Moreau Simard <[email protected]>
David Newswanger <[email protected]>
David Zager <[email protected]>
Dostonbek <[email protected]>
Dostonbek Toirov <[email protected]>
Egor Margineanu <[email protected]>
Evgeni Golov <[email protected]>
Guillaume Delacour <[email protected]>
Ivan <[email protected]>
Ivan Remizov <[email protected]>
Jake Jackson <[email protected]>
James Cammarata <[email protected]>
James Tanner <[email protected]>
Jason Yundt <[email protected]>
Jeff Geerling <[email protected]>
Jiri Tyr <[email protected]>
Joe Fiorini <[email protected]>
John Barker <[email protected]>
John Corrales <[email protected]>
John R Barker <[email protected]>
John R Barker <[email protected]>
Jorge Heleno <[email protected]>
Jürgen Etzlstorfer <[email protected]>
Karl Goetz <[email protected]>
Kevin Breit <[email protected]>
Khrystyna Bugaienko <[email protected]>
Kyle <[email protected]>
Leon M. George <[email protected]>
Martin Hradil <[email protected]>
Martin Krizek <[email protected]>
Nicolas Quiniou-Briand <[email protected]>
Paul Belanger <[email protected]>
Paul Belanger <[email protected]>
Paul dG <[email protected]>
Ryuichi Watanabe <[email protected]>
Samy Coenen <[email protected]>
Sandra McCann <[email protected]>
Strix <[email protected]>
Sviatoslav Sydorenko <[email protected]>
Thad Guidry <[email protected]>
Till! <[email protected]>
Timothy Appnel <[email protected]>
Traythedev <[email protected]>
Yanis Guenane <[email protected]>
cclauss <[email protected]>
chynasan <[email protected]>
ironfroggy <[email protected]>
ironfroggy <[email protected]>
jawyoonis <[email protected]>
jctanner <[email protected]>
thedoubl3j <[email protected]>
12 changes: 7 additions & 5 deletions update-authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
import re
import subprocess

author_re = re.compile(r'^\s*\d+\t([\w ]+ <[^>]+>)$')
author_re = re.compile(r'(?<=\t).*')

git_log = subprocess.check_output(['git', 'shortlog', '--summary', '--email'])
# Without the HEAD argument, git shortlog will fail when run during a pre-commit hook.
# Thanks to Michał Górny (https://stackoverflow.com/users/165333/micha%c5%82-g%c3%b3rny)
# for pointing this out: <https://stackoverflow.com/a/12133752/7593853>
git_log = subprocess.check_output(['git', 'shortlog', '--summary', '--email', 'HEAD'])
log_entries = git_log.decode('utf-8').strip().split('\n')
authors = [author_re.match(entry).group(1) for entry in log_entries]


print("Galaxy has been contribued to by the following authors:\n"
"This list is automatically generated - please file an issue for corrections)\n")
for author in authors:
print(author)
for entry in log_entries:
print(author_re.search(entry).group(0))