Filter out PRs with changelog: none

This commit is contained in:
flip1995 2019-08-12 09:38:52 +02:00
parent e255f36afe
commit 27ddde561e
No known key found for this signature in database
GPG Key ID: 01C836B640FFDFB1

View File

@ -14,7 +14,12 @@ IFS='
for pr in $(git log --oneline --grep "Merge #" --grep "Merge pull request" --grep "Auto merge of" "$first...$last" | sort -rn | uniq); do
id=$(echo $pr | rg -o '#[0-9]{3,5}' | cut -c 2-)
commit=$(echo $pr | cut -d' ' -f 1)
message=$(git --no-pager show --pretty=medium $commit)
if [ ! -z $(echo "$message" | rg "^[\s]{4}changelog: [nN]one\.*$") ]; then
continue
fi
echo "URL: https://github.com/rust-lang/rust-clippy/pull/$id"
echo "$(git --no-pager show --pretty=medium $commit)"
echo "$message"
echo "---------------------------------------------------------\n"
done