mirror of https://github.com/tiangolo/fastapi.git
14 lines
342 B
Bash
14 lines
342 B
Bash
#! /usr/bin/env bash
|
|
|
|
set -x
|
|
set -e
|
|
|
|
PR=${PR:?Variable not set}
|
|
DEPLOY_URL=${DEPLOY_URL:?Variable not set}
|
|
GITHUB_TOKEN=${GITHUB_TOKEN:?Variable not set}
|
|
|
|
curl \
|
|
-H "Authorization: token ${GITHUB_TOKEN}" \
|
|
https://api.github.com/repos/tiangolo/fastapi/issues/${PR}/comments \
|
|
-d '{"body": "📝 Docs preview: '"${DEPLOY_URL}"'"}'
|