Skip to content

Commit 4bc8ac9

Browse files
Testing all Py API after libs update 2
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent c36bb78 commit 4bc8ac9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

utils/github_activity.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
# API_URL=https://3f13-147-75-85-27.ngrok-free.app (defaults to localhost:5000)
3+
# DEBUG=1 ./utils/github_activity.sh
4+
5+
if [ -z "$API_URL" ]
6+
then
7+
export API_URL="http://localhost:5000"
8+
fi
9+
10+
if [ ! -z "$DEBUG" ]
11+
then
12+
cat new-pr.json.secret
13+
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'"
14+
fi
15+
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 commit comments

Comments
 (0)