AUTHORS file added
* AUTHORS file generator fixed to impove AUTHORS file generation * Co-Authored-By is now correctly supported Change-Id: Ifc4226b2dcc391db790391ce10a7f15680c39db3
This commit is contained in:
parent
525dc6eb42
commit
922ba0ca01
1
.gitignore
vendored
1
.gitignore
vendored
@ -31,7 +31,6 @@ doc/build
|
||||
.coverage
|
||||
nosetests.xml
|
||||
pylint-report.txt
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
cscope.out
|
||||
horizon
|
||||
|
3
.mailmap
Normal file
3
.mailmap
Normal file
@ -0,0 +1,3 @@
|
||||
# Format is:
|
||||
# <preferred e-mail> <other e-mail 1>
|
||||
# <preferred e-mail> <other e-mail 2>
|
4
AUTHORS
Normal file
4
AUTHORS
Normal file
@ -0,0 +1,4 @@
|
||||
Alexander Kuznetsov <akuznetsov@mirantis.com>
|
||||
Dmitry Mescheryakov <dmescheryakov@mirantis.com>
|
||||
Nikita Konovalov <nkonovalov@mirantis.com>
|
||||
Sergey Lukjanov <slukjanov@mirantis.com>
|
@ -160,7 +160,8 @@ def write_git_changelog():
|
||||
|
||||
def generate_authors():
|
||||
"""Create AUTHORS file using git commits."""
|
||||
jenkins_email = 'jenkins@review.(openstack|stackforge).org'
|
||||
jenkins_email = ('(jenkins@review.(openstack|stackforge).org'
|
||||
'|openstack-infra@lists.openstack.org)')
|
||||
old_authors = 'AUTHORS.in'
|
||||
new_authors = 'AUTHORS'
|
||||
git_dir = _get_git_directory()
|
||||
@ -175,10 +176,11 @@ def generate_authors():
|
||||
" log | grep -i Co-authored-by: | sort -u")
|
||||
signed_entries = _run_shell_command(signed_cmd)
|
||||
if signed_entries:
|
||||
new_entries = "\n".join(
|
||||
[signed.split(":", 1)[1].strip()
|
||||
for signed in signed_entries.split("\n") if signed])
|
||||
changelog = "\n".join((changelog, new_entries))
|
||||
new_entries = [signed.split(":", 1)[1].strip()
|
||||
for signed in signed_entries.split("\n") if signed]
|
||||
for new_entry in new_entries:
|
||||
if new_entry not in changelog:
|
||||
changelog += "\n" + new_entry
|
||||
mailmap = _parse_git_mailmap(git_dir)
|
||||
with open(new_authors, 'w') as new_authors_fh:
|
||||
new_authors_fh.write(canonicalize_emails(changelog, mailmap))
|
||||
|
Loading…
Reference in New Issue
Block a user