diff --git a/AUTHORS b/AUTHORS index 91983287d..d932ddd61 100644 --- a/AUTHORS +++ b/AUTHORS @@ -5,24 +5,62 @@ Adrian Likins Alexander Saprykin Andrew Crosby Brian Coca +Brian McLaughlin +Bruno Rocha +Calvin Spealman Chris Church Chris Houseknecht +Chris Meyers Christopher Chase +Chyna Sanders +David Davis +David Moreau Simard David Newswanger David Zager -Dostonbek +Dostonbek Toirov <31990136+Dostonbek1@users.noreply.github.com> +Egor Margineanu +Evgeni Golov +Guillaume Delacour Ivan Ivan Remizov +Jake Jackson James Cammarata +James Tanner +Jason Yundt +Jeff Geerling Jiri Tyr Joe Fiorini +John Barker John Corrales John R Barker +John R Barker Jorge Heleno +Jürgen Etzlstorfer Karl Goetz +Kevin Breit Khrystyna Bugaienko +Kyle <3204236+DevKyleS@users.noreply.github.com> +Leon M. George +Martin Hradil Martin Krizek +Nicolas Quiniou-Briand +Paul Belanger +Paul Belanger Paul dG +Ryuichi Watanabe +Samy Coenen +Sandra McCann +Strix <660956+MrStrix@users.noreply.github.com> +Sviatoslav Sydorenko +Thad Guidry +Till! Timothy Appnel +Traythedev +Yanis Guenane cclauss +chynasan +ironfroggy +ironfroggy jawyoonis +jctanner +thedoubl3j diff --git a/update-authors.py b/update-authors.py index 5c75a6008..30c03ae40 100755 --- a/update-authors.py +++ b/update-authors.py @@ -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: +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))