Skip to content

Commit c154754

Browse files
committed
Auto merge of #4373 - flip1995:filter_changelog_none, r=phansch
Filter out PRs with changelog: none cc #4372 Filtering out the `changelog: none` merge commits, to unclutter the output. changelog: none
2 parents e255f36 + 27ddde5 commit c154754

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

util/fetch_prs_between.sh

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

0 commit comments

Comments
 (0)