mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Authenticate with github_api_token
This commit is contained in:
parent
a0f6c9361b
commit
cb6cec5695
@ -17,6 +17,7 @@ branches:
|
||||
env:
|
||||
global:
|
||||
- RUST_BACKTRACE=1
|
||||
- secure: "OKulfkA5OGd/d1IhvBKzRkHQwMcWjzrzbimo7+5NhkUkWxndAzl+719TB3wWvIh1i2wXXrEXsyZkXM5FtRrHm55v1VKQ5ibjEvFg1w3NIg81iDyoLq186fLqywvxGkOAFPrsePPsBj5USd5xvhwwbrjO6L7/RK6Z8shBwOSc41s="
|
||||
|
||||
install:
|
||||
- |
|
||||
@ -90,7 +91,7 @@ matrix:
|
||||
script:
|
||||
- |
|
||||
if [ "$TRAVIS_BRANCH" == "auto" ] || [ "$TRAVIS_BRANCH" == "try" ]; then
|
||||
output=$(curl -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$TRAVIS_PULL_REQUEST" | \
|
||||
output=$(curl -H "Authorization: token $GITHUB_API_TOKEN" -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$TRAVIS_PULL_REQUEST" | \
|
||||
python -c "import sys, json; print(json.load(sys.stdin)['body'])" | \
|
||||
grep "changelog: " | \
|
||||
sed "s/changelog: //g")
|
||||
|
Loading…
Reference in New Issue
Block a user