-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrigger_webhook.sh
More file actions
executable file
·78 lines (76 loc) · 2.66 KB
/
trigger_webhook.sh
File metadata and controls
executable file
·78 lines (76 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
# Webhook trigger script for PR #8
# This script sends a properly formatted GitHub pull_request webhook event
curl -X POST https://synvara.app.n8n.cloud/webhook-test/github-pr-webhook \
-H "Content-Type: application/json" \
-H "X-GitHub-Event: pull_request" \
-H "X-GitHub-Delivery: test-$(date +%s)" \
-d '{
"action": "synchronize",
"number": 8,
"pull_request": {
"id": "PR_kwDOPkIoqc6lnd-B",
"number": 8,
"state": "open",
"locked": false,
"title": "feat: Improve example module with validation and comprehensive tests",
"body": "This PR addresses all code review feedback by implementing input validation, comprehensive tests, and improved documentation. It includes 52+ parameterized tests, security improvements, and production-ready error handling.",
"url": "https://api.github.com/repos/Synvara-Labs/template-python-uv/pulls/8",
"html_url": "https://github.com/Synvara-Labs/template-python-uv/pull/8",
"diff_url": "https://github.com/Synvara-Labs/template-python-uv/pull/8.diff",
"patch_url": "https://github.com/Synvara-Labs/template-python-uv/pull/8.patch",
"user": {
"login": "lance0821",
"id": 4596483,
"type": "User"
},
"head": {
"ref": "feat/example-module-improvements",
"sha": "98500ee",
"repo": {
"name": "template-python-uv",
"full_name": "Synvara-Labs/template-python-uv",
"owner": {
"login": "Synvara-Labs",
"type": "Organization"
}
}
},
"base": {
"ref": "main",
"sha": "3b644d5",
"repo": {
"name": "template-python-uv",
"full_name": "Synvara-Labs/template-python-uv",
"owner": {
"login": "Synvara-Labs",
"type": "Organization"
}
}
},
"merged": false,
"mergeable": true,
"mergeable_state": "clean",
"commits": 9,
"additions": 739,
"deletions": 138,
"changed_files": 8
},
"repository": {
"name": "template-python-uv",
"full_name": "Synvara-Labs/template-python-uv",
"owner": {
"login": "Synvara-Labs",
"type": "Organization"
},
"html_url": "https://github.com/Synvara-Labs/template-python-uv",
"description": "Python project template with uv package manager",
"private": true,
"default_branch": "main"
},
"sender": {
"login": "lance0821",
"id": 4596483,
"type": "User"
}
}'