File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
# 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:
5
5
#
6
6
# - Formats users into Markdown links to their GitHub profiles.
7
7
# - Removes any usernames with the word "bot" in them.
8
8
# - Removes the trailing comma from the list.
9
9
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
11
11
gh api \
12
12
-H " Accept: application/vnd.github+json" \
13
13
-H " X-GitHub-Api-Version: 2022-11-28" \
14
14
/repos/$repo_spec /contributors \
15
15
--template ' {{range .}} [\@{{.login}}]({{.html_url}}){{"\n"}}{{end}}' | \
16
16
grep -v " \[bot\]" | \
17
17
tr ' \n' ' , ' | \
18
- sed -e ' s/,$//' >> _contributors.qmd.tmp
18
+ sed -e ' s/,$//' >> _contributors.qmd
You can’t perform that action at this time.
0 commit comments