Skip to content

Commit 6562be2

Browse files
authored
build: 🔨 improve formatting of contributor list (#274)
# Description From t-squared. Needs no review.
1 parent 9119dd3 commit 6562be2

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

docs/includes/_contributors.qmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
The following people have contributed to this project by submitting pull requests :tada:
1+
The following people have contributed to this project by submitting pull
2+
requests :tada:
23

3-
[\@lwjohnst86](https://github.com/lwjohnst86), [\@martonvago](https://github.com/martonvago), [\@signekb](https://github.com/signekb), [\@joelostblom](https://github.com/joelostblom)
4+
[\@joelostblom](https://github.com/joelostblom),
5+
[\@lwjohnst86](https://github.com/lwjohnst86),
6+
[\@martonvago](https://github.com/martonvago),
7+
[\@signekb](https://github.com/signekb)

tools/get-contributors.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ contributors=$(gh api \
1111
-H "Accept: application/vnd.github+json" \
1212
-H "X-GitHub-Api-Version: 2022-11-28" \
1313
/repos/$repo_spec/contributors \
14-
--template '{{range .}} [\@{{.login}}]({{.html_url}}){{"\n"}}{{end}}' | \
14+
--template '{{range .}}[\@{{.login}}]({{.html_url}}){{"\n"}}{{end}}' | \
1515
grep -v "\[bot\]" | \
16+
sort | \
1617
tr '\n' ', ' | \
17-
sed -e 's/,$/\n/'
18+
sed -e 's/,$/\n/' | \
19+
sed -e 's/,/,\n/g'
1820
)
1921

20-
echo "The following people have contributed to this project by submitting pull requests :tada:\n\n${contributors}"
22+
echo "The following people have contributed to this project by submitting pull\nrequests :tada:\n\n${contributors}"

0 commit comments

Comments
 (0)