Skip to content

Commit

Permalink
Testing all Py API after libs update 2
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Gryglicki <[email protected]>
  • Loading branch information
lukaszgryglicki committed Feb 11, 2025
1 parent c36bb78 commit 4bc8ac9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions utils/github_activity.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# API_URL=https://3f13-147-75-85-27.ngrok-free.app (defaults to localhost:5000)
# DEBUG=1 ./utils/github_activity.sh

if [ -z "$API_URL" ]
then
export API_URL="http://localhost:5000"
fi

if [ ! -z "$DEBUG" ]
then
cat new-pr.json.secret
echo "curl -s -XPOST -H \"Content-Type: application/json\" -H \"X-GITHUB-EVENT: pull_request\" \"${API_URL}/v2/github/activity\" --data-binary '@new-pr.json.secret'"
fi
curl -s -XPOST -H "Content-Type: application/json" -H "X-GITHUB-EVENT: pull_request" "${API_URL}/v2/github/activity" --data-binary '@new-pr.json.secret'

0 comments on commit 4bc8ac9

Please sign in to comment.