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 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.
99repo_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
1111gh 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
You can’t perform that action at this time.
0 commit comments