Skip to content

Commit ad67083

Browse files
hubyrodclaude
andcommitted
Update test-webhook.sh to accept route name as first argument
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bd01ef8 commit ad67083

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test-webhook.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ set -euo pipefail
33

44
GITHUB_WEBHOOK_SECRET=f637d855c345d8e2f50ebf51de5480d3fa99e8b3af636aa5824ffdcfa4e3a58c
55

6-
URL="${1:-https://app-e18aa250-0ebc-4a2d-ba9f-1383450de63c.cleverapps.io/github/skipper}"
6+
ROUTE="${1:-skipper}"
7+
BASE_URL="${2:-https://app-e18aa250-0ebc-4a2d-ba9f-1383450de63c.cleverapps.io}"
8+
URL="${BASE_URL}/github/${ROUTE}"
79
SECRET="${GITHUB_WEBHOOK_SECRET:?Set GITHUB_WEBHOOK_SECRET env var}"
810

911
PAYLOAD='{"action":"opened","pull_request":{"number":42,"title":"Test PR from curl","html_url":"https://github.com/skiplabs/skipper/pull/42","body":"This is a test webhook","user":{"login":"hugo"},"head":{"ref":"feature-branch"},"base":{"ref":"main"}},"repository":{"full_name":"skiplabs/skipper"}}'

0 commit comments

Comments
 (0)