From 7f7127751496d606181170783fb2ff20c475c8ee Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 7 Jan 2023 09:53:29 +1000 Subject: [PATCH] Whitelist dependabot --- .buildkite/linux/check_contributors | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/linux/check_contributors b/.buildkite/linux/check_contributors index 925b36575..e84b4c9fc 100755 --- a/.buildkite/linux/check_contributors +++ b/.buildkite/linux/check_contributors @@ -6,7 +6,9 @@ antispam=", at the domain " headAuthor=$(git log -1 --pretty=format:'%ae') authorAt=$(echo "$headAuthor" | sed "s/@/$antispam/") -if git log --pretty=format:'%ae' CONTRIBUTORS | grep -i "$headAuthor" > /dev/null; then +if [ $headAuthor = "49699333+dependabot[bot]@users.noreply.github.com" ]; then + echo "Dependabot whitelisted." +elif git log --pretty=format:'%ae' CONTRIBUTORS | grep -i "$headAuthor" > /dev/null; then echo "Author found in CONTRIBUTORS" else echo "All contributors:"