Skip to content

Commit ca96b85

Browse files
committed
ci: more portable unicode sorting for contributors
1 parent 67f5098 commit ca96b85

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

docs/Contributors.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ They helped [develop the app](https://github.com/lwouis/alt-tab-macos/graphs/con
3434

3535
They helped [localize the app](https://poeditor.com/join/project/8AOEZ0eAZE):
3636

37-
* Ивайло
38-
* Пустой
39-
* 林清
40-
* 橙梓
41-
* Андрій Кирбаба
42-
* Τσιλιμπότης Δημ.
4337
* 73
4438
* Aamirsuleman
4539
* Aarni Koskela
@@ -90,8 +84,8 @@ They helped [localize the app](https://poeditor.com/join/project/8AOEZ0eAZE):
9084
* Darius Rosendahl
9185
* Darko
9286
* David R
93-
* Dékány Martin
9487
* Denis
88+
* Dékány Martin
9589
* dibas-np
9690
* Didier Deschrijver
9791
* Dzhuneyt
@@ -121,8 +115,8 @@ They helped [localize the app](https://poeditor.com/join/project/8AOEZ0eAZE):
121115
* Guillaume
122116
* Gumpanath Puttarassu
123117
* hann-solo
124-
* Hao豪
125118
* Haoshuai Xu
119+
* Hao豪
126120
* Hjörtur Hjartarson
127121
* Hokuto Kato
128122
* Huandngoc
@@ -167,8 +161,8 @@ They helped [localize the app](https://poeditor.com/join/project/8AOEZ0eAZE):
167161
* Lcwhhh
168162
* Lester
169163
* Logan Boissy
170-
* Loïc
171164
* Loic. peron
165+
* Loïc
172166
* LostInCompilation
173167
* Lumaxis
174168
* lwouis
@@ -272,3 +266,9 @@ They helped [localize the app](https://poeditor.com/join/project/8AOEZ0eAZE):
272266
* yumechan
273267
* Yusuf Caliskan
274268
* Zuhaib Syed
269+
* Τσιλιμπότης Δημ.
270+
* Андрій Кирбаба
271+
* Ивайло
272+
* Пустой
273+
* 林清
274+
* 橙梓

scripts/update_contributors.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ set -exu
55
readOnlyToken="8170d6b4f0531ffd7f52edea374a3689"
66
projectId="316051"
77

8+
function unicode_sort() {
9+
python3 -c 'import sys, unicodedata; print("".join(sorted((line for line in sys.stdin if line.strip()), key=lambda s: unicodedata.normalize("NFKD", s.casefold()))), end="")'
10+
}
11+
812
(
913
echo -e "# Contributors\n"
1014

@@ -16,7 +20,7 @@ projectId="316051"
1620
-H "Authorization: token $GITHUB_TOKEN" |
1721
jq -r '.[]|("[" + .login + "](" + .html_url + ")")' |
1822
sed -e '/semantic-release-bot/d' |
19-
LC_ALL=en_US.UTF-8 sort -f |
23+
unicode_sort |
2024
sed -e 's/^/* /'
2125

2226
echo -e "\nThey helped [localize the app](https://poeditor.com/join/project/8AOEZ0eAZE):\n"
@@ -28,6 +32,6 @@ projectId="316051"
2832
-d id="$projectId" |
2933
jq -r '.result.contributors[].name'
3034
) |
31-
LC_ALL=en_US.UTF-8 sort -f |
35+
unicode_sort |
3236
sed -e 's/^/* /'
3337
) >docs/Contributors.md

0 commit comments

Comments
 (0)