mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:41:44 +08:00
docs: add bin/.ignored-emails for removing email addresses from authors.md
Remove an email as requested for Anagh Kumar Baranwal
This commit is contained in:
parent
a86196a156
commit
dcf945ed58
3
bin/.ignore-emails
Normal file
3
bin/.ignore-emails
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Email addresses to ignore in the git log when making the authors.md file
|
||||
<nick@raig-wood.com>
|
||||
<anaghk.dos@gmail.com>
|
|
@ -7,17 +7,15 @@ import re
|
|||
import subprocess
|
||||
|
||||
AUTHORS = "docs/content/authors.md"
|
||||
IGNORE = [ "nick@raig-wood.com" ]
|
||||
IGNORE = "bin/.ignore-emails"
|
||||
|
||||
def load():
|
||||
def load(filename):
|
||||
"""
|
||||
returns a set of emails already in authors.md
|
||||
returns a set of emails already in the file
|
||||
"""
|
||||
with open(AUTHORS) as fd:
|
||||
with open(filename) as fd:
|
||||
authors = fd.read()
|
||||
emails = set(re.findall(r"<(.*?)>", authors))
|
||||
emails.update(IGNORE)
|
||||
return emails
|
||||
return set(re.findall(r"<(.*?)>", authors))
|
||||
|
||||
def add_email(name, email):
|
||||
"""
|
||||
|
@ -32,7 +30,9 @@ def main():
|
|||
out = subprocess.check_output(["git", "log", '--reverse', '--format=%an|%ae', "master"])
|
||||
out = out.decode("utf-8")
|
||||
|
||||
previous = load()
|
||||
ignored = load(IGNORE)
|
||||
previous = load(AUTHORS)
|
||||
previous.update(ignored)
|
||||
for line in out.split("\n"):
|
||||
line = line.strip()
|
||||
if line == "":
|
||||
|
|
|
@ -12,6 +12,10 @@ Authors
|
|||
Contributors
|
||||
------------
|
||||
|
||||
<!--- NB email addresses removed from here need to be addeed to
|
||||
bin/.ignore-emails to make sure update-authors.py doesn't immediately
|
||||
put them back in again. -->
|
||||
|
||||
* Alex Couper <amcouper@gmail.com>
|
||||
* Leonid Shalupov <leonid@shalupov.com> <shalupov@diverse.org.ru>
|
||||
* Shimon Doodkin <helpmepro1@gmail.com>
|
||||
|
@ -192,7 +196,7 @@ Contributors
|
|||
* Sheldon Rupp <me@shel.io>
|
||||
* albertony <12441419+albertony@users.noreply.github.com>
|
||||
* cron410 <cron410@gmail.com>
|
||||
* Anagh Kumar Baranwal <anaghk.dos@gmail.com> <6824881+darthShadow@users.noreply.github.com>
|
||||
* Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
|
||||
* Felix Brucker <felix@felixbrucker.com>
|
||||
* Santiago Rodríguez <scollazo@users.noreply.github.com>
|
||||
* Craig Miskell <craig.miskell@fluxfederation.com>
|
||||
|
|
Loading…
Reference in New Issue
Block a user