mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-09-21 07:01:54 +00:00
Authenticate with github_api_token
This commit is contained in:
parent
a0f6c9361b
commit
cb6cec5695
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ branches:
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- RUST_BACKTRACE=1
|
- RUST_BACKTRACE=1
|
||||||
|
- secure: "OKulfkA5OGd/d1IhvBKzRkHQwMcWjzrzbimo7+5NhkUkWxndAzl+719TB3wWvIh1i2wXXrEXsyZkXM5FtRrHm55v1VKQ5ibjEvFg1w3NIg81iDyoLq186fLqywvxGkOAFPrsePPsBj5USd5xvhwwbrjO6L7/RK6Z8shBwOSc41s="
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- |
|
- |
|
||||||
|
@ -90,7 +91,7 @@ matrix:
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
if [ "$TRAVIS_BRANCH" == "auto" ] || [ "$TRAVIS_BRANCH" == "try" ]; then
|
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'])" | \
|
python -c "import sys, json; print(json.load(sys.stdin)['body'])" | \
|
||||||
grep "changelog: " | \
|
grep "changelog: " | \
|
||||||
sed "s/changelog: //g")
|
sed "s/changelog: //g")
|
||||||
|
|
Loading…
Reference in a new issue