From 9e1c0b98c79e4e5eda3df5c2eef904a70e43ebdb Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Thu, 5 May 2022 21:19:19 +0300 Subject: [PATCH] Contributors for 3.2.0 (#1374) --- docs/contributors/fetch.py | 1 + docs/contributors/generate.py | 10 ++++- docs/contributors/people.json | 73 +++++++++++++++++++++++++++++--- docs/contributors/snippet.jinja2 | 7 +-- 4 files changed, 81 insertions(+), 10 deletions(-) diff --git a/docs/contributors/fetch.py b/docs/contributors/fetch.py index 7924f464..ba94c281 100644 --- a/docs/contributors/fetch.py +++ b/docs/contributors/fetch.py @@ -252,6 +252,7 @@ def fetch_missing_users_details(people: People) -> None: def save_awesome_people(people: People) -> None: with DB_FILE.open(mode='w', encoding='utf-8') as fh: json.dump(people, fh, indent=4, sort_keys=True) + fh.write("\n") def debug(*args: Any) -> None: diff --git a/docs/contributors/generate.py b/docs/contributors/generate.py index d3d6fdd9..27470d56 100644 --- a/docs/contributors/generate.py +++ b/docs/contributors/generate.py @@ -8,19 +8,27 @@ from jinja2 import Template from fetch import HERE, load_awesome_people TPL_FILE = HERE / 'snippet.jinja2' + HTTPIE_TEAM = { 'claudiatd', 'jakubroztocil', 'jkbr', + 'isidentical' } +BOT_ACCOUNTS = { + 'dependabot-sr' +} + +IGNORE_ACCOUNTS = HTTPIE_TEAM | BOT_ACCOUNTS + def generate_snippets(release: str) -> str: people = load_awesome_people() contributors = { name: details for name, details in people.items() - if details['github'] not in HTTPIE_TEAM + if details['github'] not in IGNORE_ACCOUNTS and (release in details['committed'] or release in details['reported']) } diff --git a/docs/contributors/people.json b/docs/contributors/people.json index 041e67f2..70514fcc 100644 --- a/docs/contributors/people.json +++ b/docs/contributors/people.json @@ -53,11 +53,13 @@ }, "Batuhan Taskaya": { "committed": [ - "3.0.0" + "3.0.0", + "3.2.0" ], "github": "isidentical", "reported": [ - "3.0.0" + "3.0.0", + "3.2.0" ], "twitter": "isidentical" }, @@ -118,6 +120,14 @@ "reported": [], "twitter": "elena_lape" }, + "Ethan Mills": { + "committed": [ + "3.2.0" + ], + "github": "ethanmills", + "reported": [], + "twitter": null + }, "Fabio Peruzzo": { "committed": [], "github": "peruzzof", @@ -189,7 +199,8 @@ "committed": [ "2.5.0", "2.6.0", - "3.0.0" + "3.0.0", + "3.2.0" ], "github": "jakubroztocil", "reported": [ @@ -213,7 +224,8 @@ ], "github": "blyxxyz", "reported": [ - "3.0.0" + "3.0.0", + "3.2.0" ], "twitter": null }, @@ -309,7 +321,8 @@ "committed": [], "github": "ducaale", "reported": [ - "2.5.0" + "2.5.0", + "3.2.0" ], "twitter": null }, @@ -321,6 +334,22 @@ ], "twitter": "sevenc_nanashi" }, + "Nicklas Ansman Giertz": { + "committed": [], + "github": "ansman", + "reported": [ + "3.2.0" + ], + "twitter": null + }, + "Oliver Fish": { + "committed": [], + "github": "Oliver-Fish", + "reported": [ + "3.2.0" + ], + "twitter": null + }, "Omer Akram": { "committed": [ "2.6.0", @@ -357,6 +386,14 @@ ], "twitter": null }, + "Roberto L\u00f3pez L\u00f3pez": { + "committed": [], + "github": "robertolopezlopez", + "reported": [ + "3.2.0" + ], + "twitter": null + }, "Russell Shurts": { "committed": [], "github": "rshurts", @@ -487,6 +524,14 @@ ], "twitter": null }, + "dependabot[bot]": { + "committed": [ + "3.2.0" + ], + "github": "dependabot-sr", + "reported": [], + "twitter": null + }, "dkreeft": { "committed": [ "2.6.0", @@ -553,6 +598,14 @@ ], "twitter": null }, + "luzpaz": { + "committed": [ + "3.2.0" + ], + "github": "luzpaz", + "reported": [], + "twitter": null + }, "nixbytes": { "committed": [ "2.5.0" @@ -593,6 +646,14 @@ ], "twitter": null }, + "zhaohanqing95": { + "committed": [], + "github": "zhaohanqing95", + "reported": [ + "3.2.0" + ], + "twitter": null + }, "zoulja": { "committed": [], "github": "zoulja", @@ -627,4 +688,4 @@ ], "twitter": null } -} \ No newline at end of file +} diff --git a/docs/contributors/snippet.jinja2 b/docs/contributors/snippet.jinja2 index 4fa21b12..56e7d33f 100644 --- a/docs/contributors/snippet.jinja2 +++ b/docs/contributors/snippet.jinja2 @@ -2,9 +2,10 @@ ## Community contributions -We’d like to thank these amazing people for their contributions to this release: {% for name, details in contributors.items() -%} - [{{ name }}](https://github.com/{{ details.github }}){{ '' if loop.last else ', ' }} -{%- endfor %}. +We’d like to thank these amazing people for their contributions to this release: +{% for name, details in contributors.items() -%} +- [{{ name }}](https://github.com/{{ details.github }}){{ '' if loop.last else '\n' }} +{%- endfor %}