Skip to content

Commit 1c87df4

Browse files
committed
grep only lines, that start with 'changelog: '
1 parent 61ca901 commit 1c87df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ script:
9494
pr=$(echo $TRAVIS_COMMIT_MESSAGE | grep -o "#[0-9]*" | head -1 | sed 's/^#//g')
9595
output=$(curl -H "Authorization: token $GITHUB_API_TOKEN" -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$pr" | \
9696
python -c "import sys, json; print(json.load(sys.stdin)['body'])" | \
97-
grep "changelog: " | \
97+
grep "^changelog: " | \
9898
sed "s/changelog: //g")
9999
if [ -z "$output" ]; then
100100
echo "ERROR: PR body must contain 'changelog: ...'"

0 commit comments

Comments
 (0)