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 4a3f597 commit 1a869e6Copy full SHA for 1a869e6
.travis.yml
@@ -95,7 +95,8 @@ matrix:
95
script:
96
- |
97
if [ "$TRAVIS_BRANCH" == "auto" ] || [ "$TRAVIS_BRANCH" == "try" ]; then
98
- output=$(curl -H "Authorization: token $GITHUB_API_TOKEN" -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$TRAVIS_PULL_REQUEST" | \
+ pr=$(echo $TRAVIS_COMMIT_MESSAGE | grep -o "#[0-9]*" | head -1 | sed 's/^#//g)
99
+ output=$(curl -H "Authorization: token $GITHUB_API_TOKEN" -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$pr" | \
100
python -c "import sys, json; print(json.load(sys.stdin)['body'])" | \
101
grep "changelog: " | \
102
sed "s/changelog: //g")
0 commit comments