set -euo pipefail
-# The travis token can be set at https://travis-ci.org/psycopg/psycopg2/settings
+# The travis token can be set at https://travis-ci.com/psycopg/psycopg3/settings
# and can be set on a selected branch only (which should match the DOC3_BRANCH
# in the psycopg-website Makefile, or it won't refresh a thing).
if [ -z "${TRAVIS_TOKEN:-}" ]; then
-H "Travis-API-Version: 3" \
-H "Authorization: token ${TRAVIS_TOKEN}" \
-d "{\"request\": {\"branch\": \"${TRAVIS_BRANCH}\"}}" \
- https://api.travis-ci.org/repo/psycopg%2Fpsycopg-website/requests
+ https://api.travis-ci.com/repo/psycopg%2Fpsycopg-website/requests