File tree Expand file tree Collapse file tree 4 files changed +81
-10
lines changed
Expand file tree Collapse file tree 4 files changed +81
-10
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ def fetch_missing_users_details(people: People) -> None:
252252def save_awesome_people (people : People ) -> None :
253253 with DB_FILE .open (mode = 'w' , encoding = 'utf-8' ) as fh :
254254 json .dump (people , fh , indent = 4 , sort_keys = True )
255+ fh .write ("\n " )
255256
256257
257258def debug (* args : Any ) -> None :
Original file line number Diff line number Diff line change 88from fetch import HERE , load_awesome_people
99
1010TPL_FILE = HERE / 'snippet.jinja2'
11+
1112HTTPIE_TEAM = {
1213 'claudiatd' ,
1314 'jakubroztocil' ,
1415 'jkbr' ,
16+ 'isidentical'
17+ }
18+
19+ BOT_ACCOUNTS = {
20+ 'dependabot-sr'
1521}
1622
23+ IGNORE_ACCOUNTS = HTTPIE_TEAM | BOT_ACCOUNTS
24+
1725
1826def generate_snippets (release : str ) -> str :
1927 people = load_awesome_people ()
2028 contributors = {
2129 name : details
2230 for name , details in people .items ()
23- if details ['github' ] not in HTTPIE_TEAM
31+ if details ['github' ] not in IGNORE_ACCOUNTS
2432 and (release in details ['committed' ] or release in details ['reported' ])
2533 }
2634
Original file line number Diff line number Diff line change 5353 },
5454 "Batuhan Taskaya" : {
5555 "committed" : [
56- " 3.0.0"
56+ " 3.0.0" ,
57+ " 3.2.0"
5758 ],
5859 "github" : " isidentical" ,
5960 "reported" : [
60- " 3.0.0"
61+ " 3.0.0" ,
62+ " 3.2.0"
6163 ],
6264 "twitter" : " isidentical"
6365 },
118120 "reported" : [],
119121 "twitter" : " elena_lape"
120122 },
123+ "Ethan Mills" : {
124+ "committed" : [
125+ " 3.2.0"
126+ ],
127+ "github" : " ethanmills" ,
128+ "reported" : [],
129+ "twitter" : null
130+ },
121131 "Fabio Peruzzo" : {
122132 "committed" : [],
123133 "github" : " peruzzof" ,
189199 "committed" : [
190200 " 2.5.0" ,
191201 " 2.6.0" ,
192- " 3.0.0"
202+ " 3.0.0" ,
203+ " 3.2.0"
193204 ],
194205 "github" : " jakubroztocil" ,
195206 "reported" : [
213224 ],
214225 "github" : " blyxxyz" ,
215226 "reported" : [
216- " 3.0.0"
227+ " 3.0.0" ,
228+ " 3.2.0"
217229 ],
218230 "twitter" : null
219231 },
309321 "committed" : [],
310322 "github" : " ducaale" ,
311323 "reported" : [
312- " 2.5.0"
324+ " 2.5.0" ,
325+ " 3.2.0"
313326 ],
314327 "twitter" : null
315328 },
321334 ],
322335 "twitter" : " sevenc_nanashi"
323336 },
337+ "Nicklas Ansman Giertz" : {
338+ "committed" : [],
339+ "github" : " ansman" ,
340+ "reported" : [
341+ " 3.2.0"
342+ ],
343+ "twitter" : null
344+ },
345+ "Oliver Fish" : {
346+ "committed" : [],
347+ "github" : " Oliver-Fish" ,
348+ "reported" : [
349+ " 3.2.0"
350+ ],
351+ "twitter" : null
352+ },
324353 "Omer Akram" : {
325354 "committed" : [
326355 " 2.6.0" ,
357386 ],
358387 "twitter" : null
359388 },
389+ "Roberto L\u00f3 pez L\u00f3 pez" : {
390+ "committed" : [],
391+ "github" : " robertolopezlopez" ,
392+ "reported" : [
393+ " 3.2.0"
394+ ],
395+ "twitter" : null
396+ },
360397 "Russell Shurts" : {
361398 "committed" : [],
362399 "github" : " rshurts" ,
487524 ],
488525 "twitter" : null
489526 },
527+ "dependabot[bot]" : {
528+ "committed" : [
529+ " 3.2.0"
530+ ],
531+ "github" : " dependabot-sr" ,
532+ "reported" : [],
533+ "twitter" : null
534+ },
490535 "dkreeft" : {
491536 "committed" : [
492537 " 2.6.0" ,
553598 ],
554599 "twitter" : null
555600 },
601+ "luzpaz" : {
602+ "committed" : [
603+ " 3.2.0"
604+ ],
605+ "github" : " luzpaz" ,
606+ "reported" : [],
607+ "twitter" : null
608+ },
556609 "nixbytes" : {
557610 "committed" : [
558611 " 2.5.0"
593646 ],
594647 "twitter" : null
595648 },
649+ "zhaohanqing95" : {
650+ "committed" : [],
651+ "github" : " zhaohanqing95" ,
652+ "reported" : [
653+ " 3.2.0"
654+ ],
655+ "twitter" : null
656+ },
596657 "zoulja" : {
597658 "committed" : [],
598659 "github" : " zoulja" ,
627688 ],
628689 "twitter" : null
629690 }
630- }
691+ }
Original file line number Diff line number Diff line change 22
33## Community contributions
44
5- We’d like to thank these amazing people for their contributions to this release: {% for name , details in contributors .items () -%}
6- [{{ name }}](https://github.com/{{ details.github }}){{ '' if loop.last else ', ' }}
7- {% - endfor %} .
5+ We’d like to thank these amazing people for their contributions to this release:
6+ {% for name , details in contributors .items () -%}
7+ - [{{ name }}](https://github.com/{{ details.github }}){{ '' if loop.last else '\n' }}
8+ {% - endfor %}
89
910<!-- Twitter -->
1011
You can’t perform that action at this time.
0 commit comments