mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-27 08:50:38 +03:00
Bot usernames are excluded in the generator
This commit is contained in:
parent
81bc4fb73d
commit
7570ed9c5a
|
@ -26,7 +26,7 @@ def main() -> None:
|
||||||
contrib_file = ContributorsJSONFile()
|
contrib_file = ContributorsJSONFile()
|
||||||
for username in recent_authors:
|
for username in recent_authors:
|
||||||
print(f"Checking if {username} should be added")
|
print(f"Checking if {username} should be added")
|
||||||
if username not in contrib_file and username not in BOT_LOGINS:
|
if username not in contrib_file:
|
||||||
user_data = gh.fetch_user_info(username)
|
user_data = gh.fetch_user_info(username)
|
||||||
contrib_file.add_contributor(user_data)
|
contrib_file.add_contributor(user_data)
|
||||||
print(f"Added {username} to contributors")
|
print(f"Added {username} to contributors")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user