mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Whitelist dependabot
This commit is contained in:
parent
309c467403
commit
7f71277514
1 changed files with 3 additions and 1 deletions
|
@ -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:"
|
||||
|
|
Loading…
Reference in a new issue