From 73d129721dce279aa153df445c98b2e6b8f91bdc Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 8 Aug 2018 22:15:46 +0000 Subject: [PATCH] Travis #917: sync github pages --- pages/files/check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/files/check.sh b/pages/files/check.sh index b513589..9938975 100644 --- a/pages/files/check.sh +++ b/pages/files/check.sh @@ -11,7 +11,7 @@ git config --global core.quotepath false git diff HEAD^ --name-status | grep "^D" -v | sed 's/^.\t//g' | grep "\.md$" > /tmp/changed_files -curl -sH "Accept: application/vnd.github.v3.diff.json" https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST > /tmp/pr.diff +curl -s https://github-api-bot.herokuapp.com/diff?repo=$TRAVIS_REPO_SLUG&pr=$TRAVIS_PULL_REQUEST > /tmp/pr.diff if [ "$?" != "0" ]; then echo "Can't get github pull request diff, probably rate limit? Try to restart CI build" @@ -45,7 +45,7 @@ cat /tmp/comments_array.json EXIT_CODE=0 if [ "$(cat /tmp/comments_array.json)" != "[]" ]; then - curl -s https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST/comments > /tmp/pr_comments.json + curl -s https://github-api-bot.herokuapp.com/comments?repo=$TRAVIS_REPO_SLUG&pr=$TRAVIS_PULL_REQUEST > /tmp/pr_comments.json if [ "$?" != "0" ]; then echo "Can't get github comments, probably rate limit? Try to restart ci build"