From 1c87df486e44f46ef1860b497e9cc538bae09545 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 18 Jun 2019 12:14:02 +0200 Subject: [PATCH] grep only lines, that start with 'changelog: ' --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 12c9f512f569e..0a1bd0ea2750c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -94,7 +94,7 @@ script: pr=$(echo $TRAVIS_COMMIT_MESSAGE | grep -o "#[0-9]*" | head -1 | sed 's/^#//g') output=$(curl -H "Authorization: token $GITHUB_API_TOKEN" -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$pr" | \ python -c "import sys, json; print(json.load(sys.stdin)['body'])" | \ - grep "changelog: " | \ + grep "^changelog: " | \ sed "s/changelog: //g") if [ -z "$output" ]; then echo "ERROR: PR body must contain 'changelog: ...'"