Skip to content

Commit 879bfc1

Browse files
committed
grep only lines, that start with 'changelog: '
1 parent 1b34193 commit 879bfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

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

0 commit comments

Comments
 (0)