anki/.github/scripts/contrib.sh
Erez Volk bd9aaa9296 Small fixes and tweaks to "Tag Modified":
- No need for the checkbox, as an unchecked box is equal to an empty
`QLineEdit`.
- The value was saved to the profile but not loaded.
- And the real pièce de résistance: I've figured out how to "Promote"
the `QLineEdit` to a `TagEdit`.

Hope you like it! :)
2020-01-15 10:46:05 +02:00

15 lines
356 B
Bash
Executable File

#!/bin/bash
set -e
echo "All contributors:"
git log --pretty=format:' - %ae' CONTRIBUTORS |sort |uniq |sort -f
headAuthor=$(git log -1 --pretty=format:'%ae')
if git log --pretty=format:'%ae' CONTRIBUTORS | grep -q "$headAuthor"; then
echo "Author $headAuthor found in CONTRIBUTORS"
else
echo "Author $headAuthor NOT found in list"
exit 1
fi