mirror of
https://github.com/nextcloud/news-updater.git
synced 2025-12-23 22:07:41 -05:00
update authors
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# Authors
|
||||
Authors
|
||||
=======
|
||||
|
||||
* `Bernhard Posselt <mailto:dev@bernhard-posselt.com`_
|
||||
* `Bernhard Posselt <mailto:dev@bernhard-posselt.com>`_
|
||||
@@ -26,7 +26,7 @@ def parse_git_author(line):
|
||||
|
||||
|
||||
def to_markdown(author):
|
||||
return '* `%s <mailto:%s`_' % (author['name'], author['email'])
|
||||
return '* `%s <mailto:%s>`_' % (author['name'], author['email'])
|
||||
|
||||
|
||||
def get_authors_file():
|
||||
@@ -40,7 +40,7 @@ def main():
|
||||
authors = filter(lambda name: name.strip() != '', authors)
|
||||
authors = map(parse_git_author, authors)
|
||||
authors = map(to_markdown, authors)
|
||||
authors = ['# Authors', ''] + list(authors)
|
||||
authors = ['Authors', '=======', ''] + list(authors)
|
||||
markdown = '\n'.join(authors)
|
||||
with open(get_authors_file(), 'w') as f:
|
||||
f.write(markdown)
|
||||
|
||||
Reference in New Issue
Block a user