Skip to content

Commit

Permalink
Auto merge of #4373 - flip1995:filter_changelog_none, r=phansch
Browse files Browse the repository at this point in the history
Filter out PRs with changelog: none

cc #4372

Filtering out the `changelog: none` merge commits, to unclutter the output.

changelog: none
  • Loading branch information
bors committed Aug 12, 2019
2 parents e255f36 + 27ddde5 commit c154754
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion util/fetch_prs_between.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c154754

Please sign in to comment.