File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export GITHUB_WEBHOOK_SECRET="It's a Secret to Everybody"
2222# Use mock server unless OPENAI_API_KEY is already set
2323if [[ -z " ${OPENAI_API_KEY:- } " ]]; then
2424 echo " OPENAI_API_KEY not set, using mock OpenAI server"
25-
25+
2626 # Start mock OpenAI server
2727 python3 ./scripts/mock-openai-server.py $MOCK_OPENAI_PORT &
2828 MOCK_PID=$!
@@ -108,6 +108,13 @@ while ! obelisk component list 2>/dev/null; do
108108 sleep 1
109109done
110110
111+ # Make sure this repo has no stars
112+ JSON=$( curl --fail " http://127.0.0.1:9090?repo=${STAR_ACCOUNT} /${STAR_REPO} &ordering=asc&limit=1" )
113+ if [[ " $JSON " != " []" ]]; then
114+ echo " The repo ${STAR_ACCOUNT} /${STAR_REPO} already has star gazers"
115+ exit 1
116+ fi
117+
111118PAYLOAD=' {
112119 "action": "created",
113120 "sender": {
You can’t perform that action at this time.
0 commit comments