From 97fb0879d7208a22323cdf85fd285f0d1719b154 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 6 Aug 2025 18:16:58 +0200 Subject: [PATCH] fix: :bug: `get-contributors.sh` should not output with `.tmp` ending --- template/tools/get-contributors.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template/tools/get-contributors.sh b/template/tools/get-contributors.sh index 65bfbb4..40aea37 100644 --- a/template/tools/get-contributors.sh +++ b/template/tools/get-contributors.sh @@ -1,13 +1,13 @@ #!/usr/bin/env bash # Get a list of contributors to this repository and save it to -# _contributors.qmd.tmp file. It also: +# _contributors.qmd file (overwritten if it exists). It also: # # - Formats users into Markdown links to their GitHub profiles. # - Removes any usernames with the word "bot" in them. # - Removes the trailing comma from the list. repo_spec=${1} -echo "These are the people who have contributed by submitting changes through pull requests :tada:\n\n" > _contributors.qmd.tmp +echo "These are the people who have contributed by submitting changes through pull requests :tada:\n\n" > _contributors.qmd gh api \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ @@ -15,4 +15,4 @@ gh api \ --template '{{range .}} [\@{{.login}}]({{.html_url}}){{"\n"}}{{end}}' | \ grep -v "\[bot\]" | \ tr '\n' ', ' | \ - sed -e 's/,$//' >> _contributors.qmd.tmp + sed -e 's/,$//' >> _contributors.qmd