We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73bb33 commit a0f6c93Copy full SHA for a0f6c93
.travis.yml
@@ -88,6 +88,19 @@ matrix:
88
- os: windows
89
90
script:
91
+ - |
92
+ if [ "$TRAVIS_BRANCH" == "auto" ] || [ "$TRAVIS_BRANCH" == "try" ]; then
93
+ output=$(curl -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$TRAVIS_PULL_REQUEST" | \
94
+ python -c "import sys, json; print(json.load(sys.stdin)['body'])" | \
95
+ grep "changelog: " | \
96
+ sed "s/changelog: //g")
97
+ if [ -z "$output" ]; then
98
+ echo "ERROR: PR body must contain 'changelog: ...'"
99
+ exit 1
100
+ elif [ "$output" = "none" ]; then
101
+ echo "WARNING: changelog is 'none'"
102
+ fi
103
104
- |
105
rm rust-toolchain
106
./setup-toolchain.sh
0 commit comments