Skip to content

Commit 4d0a3f4

Browse files
committed
build: 🔧 use latest get-contributors.sh in template
1 parent 267be14 commit 4d0a3f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/tools/get-contributors.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/usr/bin/env bash
22

33
# Get a list of contributors to this repository and save it to
4-
# _contributors.qmd.tmp file. It also:
4+
# _contributors.qmd file (overwritten if it exists). It also:
55
#
66
# - Formats users into Markdown links to their GitHub profiles.
77
# - Removes any usernames with the word "bot" in them.
88
# - Removes the trailing comma from the list.
99
repo_spec=${1}
10-
echo "These are the people who have contributed by submitting changes through pull requests :tada:\n\n" > _contributors.qmd.tmp
10+
echo "These are the people who have contributed by submitting changes through pull requests :tada:\n\n" > _contributors.qmd
1111
gh api \
1212
-H "Accept: application/vnd.github+json" \
1313
-H "X-GitHub-Api-Version: 2022-11-28" \
1414
/repos/$repo_spec/contributors \
1515
--template '{{range .}} [\@{{.login}}]({{.html_url}}){{"\n"}}{{end}}' | \
1616
grep -v "\[bot\]" | \
1717
tr '\n' ', ' | \
18-
sed -e 's/,$//' >> _contributors.qmd.tmp
18+
sed -e 's/,$//' >> _contributors.qmd

0 commit comments

Comments
 (0)