forked from ubiquity-os-marketplace/daemon-pricing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
request.http
263 lines (262 loc) · 13.8 KB
/
request.http
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
### POST a successful request to the Worker
# Variables as follows:
# org_name: the organization you want to post to, e.g. "ubiquity-os"
# repo_name: the target repository, e.g "daemon-pricing"
# issue_number: the number of the issue, same as the one you would see in the url to that issue, e.g. "1"
# command: the command you want to test, e.g. "/allow @UbiquityOS"
# token: a valid GitHub token for auth, e.g. "ghs_xxxxx"
POST http://localhost:4000/
Content-Type: application/json
{
"stateId": "",
"eventName": "issue_comment.created",
"eventPayload": {
"action": "created",
"issue": {
"url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/{{issue_number}}",
"repository_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}",
"labels_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/{{issue_number}}/labels{/name}",
"comments_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/{{issue_number}}/comments",
"events_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/{{issue_number}}/events",
"html_url": "https://github.com/{{org_name}}/{{repo_name}}/issues/{{issue_number}}",
"id": 2297627819,
"node_id": "I_kwDOLy-Pv86I8wSr",
"number": 5,
"title": "New issue",
"user": {
"login": "ubiquity-os",
"id": 1,
"node_id": "MDQ6VXNlcjk4MDcwMDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ubiquity-os",
"html_url": "https://github.com/ubiquity-os",
"followers_url": "https://api.github.com/users/ubiquity-os/followers",
"following_url": "https://api.github.com/users/ubiquity-os/following{/other_user}",
"gists_url": "https://api.github.com/users/ubiquity-os/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ubiquity-os/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ubiquity-os/subscriptions",
"organizations_url": "https://api.github.com/users/ubiquity-os/orgs",
"repos_url": "https://api.github.com/users/ubiquity-os/repos",
"events_url": "https://api.github.com/users/ubiquity-os/events{/privacy}",
"received_events_url": "https://api.github.com/users/ubiquity-os/received_events",
"type": "User",
"site_admin": false
},
"labels": [],
"state": "open",
"locked": false,
"assignee": null,
"assignees": [],
"milestone": null,
"comments": 34,
"created_at": "2024-05-15T11:22:48Z",
"updated_at": "2024-05-19T11:54:24Z",
"closed_at": null,
"author_association": "CONTRIBUTOR",
"active_lock_reason": null,
"body": "Another issue.",
"reactions": {
"url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/{{issue_number}}/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/{{issue_number}}/timeline",
"performed_via_github_app": null,
"state_reason": null
},
"comment": {
"url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/comments/1",
"html_url": "https://github.com/{{org_name}}/{{repo_name}}/issues/{{issue_number}}#issuecomment-1",
"issue_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/{{issue_number}}",
"id": 1,
"node_id": "IC_kwDOLy-Pv85-UI-X",
"user": {
"login": "ubiquity-os",
"id": 1,
"node_id": "MDQ6VXNlcjk4MDcwMDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ubiquity-os",
"html_url": "https://github.com/ubiquity-os",
"followers_url": "https://api.github.com/users/ubiquity-os/followers",
"following_url": "https://api.github.com/users/ubiquity-os/following{/other_user}",
"gists_url": "https://api.github.com/users/ubiquity-os/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ubiquity-os/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ubiquity-os/subscriptions",
"organizations_url": "https://api.github.com/users/ubiquity-os/orgs",
"repos_url": "https://api.github.com/users/ubiquity-os/repos",
"events_url": "https://api.github.com/users/ubiquity-os/events{/privacy}",
"received_events_url": "https://api.github.com/users/ubiquity-os/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2024-05-19T11:54:23Z",
"updated_at": "2024-05-19T11:54:23Z",
"author_association": "CONTRIBUTOR",
"body": "{{command}}",
"reactions": {
"url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/comments/1/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"performed_via_github_app": null
},
"repository": {
"id": 1,
"node_id": "R_kgDOLy-Pvw",
"name": "{{repo_name}}",
"full_name": "{{org_name}}/{{repo_name}}",
"private": false,
"owner": {
"login": "{{org_name}}",
"id": 1,
"node_id": "O_kgDOCYfonA",
"avatar_url": "https://avatars.githubusercontent.com/u/1?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/{{org_name}}",
"html_url": "https://github.com/{{org_name}}",
"followers_url": "https://api.github.com/users/{{org_name}}/followers",
"following_url": "https://api.github.com/users/{{org_name}}/following{/other_user}",
"gists_url": "https://api.github.com/users/{{org_name}}/gists{/gist_id}",
"starred_url": "https://api.github.com/users/{{org_name}}/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/{{org_name}}/subscriptions",
"organizations_url": "https://api.github.com/users/{{org_name}}/orgs",
"repos_url": "https://api.github.com/users/{{org_name}}/repos",
"events_url": "https://api.github.com/users/{{org_name}}/events{/privacy}",
"received_events_url": "https://api.github.com/users/{{org_name}}/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/{{org_name}}/{{repo_name}}",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}",
"forks_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/forks",
"keys_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/teams",
"hooks_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/hooks",
"issue_events_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/events{/number}",
"events_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/events",
"assignees_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/assignees{/user}",
"branches_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/branches{/branch}",
"tags_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/tags",
"blobs_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/statuses/{sha}",
"languages_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/languages",
"stargazers_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/stargazers",
"contributors_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/contributors",
"subscribers_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/subscribers",
"subscription_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/subscription",
"commits_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/contents/{+path}",
"compare_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/merges",
"archive_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/downloads",
"issues_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/issues{/number}",
"pulls_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/pulls{/number}",
"milestones_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/milestones{/number}",
"notifications_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/labels{/name}",
"releases_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/releases{/id}",
"deployments_url": "https://api.github.com/repos/{{org_name}}/{{repo_name}}/deployments",
"created_at": "2024-04-25T05:19:30Z",
"updated_at": "2024-05-19T09:47:02Z",
"pushed_at": "2024-05-19T09:46:59Z",
"git_url": "git://github.com/{{org_name}}/{{repo_name}}.git",
"ssh_url": "[email protected]:{{org_name}}/{{repo_name}}.git",
"clone_url": "https://github.com/{{org_name}}/{{repo_name}}.git",
"svn_url": "https://github.com/{{org_name}}/{{repo_name}}",
"homepage": null,
"size": 56,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"has_discussions": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 1,
"license": null,
"allow_forking": true,
"is_template": false,
"web_commit_signoff_required": false,
"topics": [],
"visibility": "public",
"forks": 0,
"open_issues": 1,
"watchers": 0,
"default_branch": "main",
"custom_properties": {}
},
"organization": {
"login": "{{org_name}}",
"id": 1,
"node_id": "O_kgDOCYfonA",
"url": "https://api.github.com/orgs/{{org_name}}",
"repos_url": "https://api.github.com/orgs/{{org_name}}/repos",
"events_url": "https://api.github.com/orgs/{{org_name}}/events",
"hooks_url": "https://api.github.com/orgs/{{org_name}}/hooks",
"issues_url": "https://api.github.com/orgs/{{org_name}}/issues",
"members_url": "https://api.github.com/orgs/{{org_name}}/members{/member}",
"public_members_url": "https://api.github.com/orgs/{{org_name}}/public_members{/member}",
"avatar_url": "https://avatars.githubusercontent.com/u/1?v=4",
"description": null
},
"sender": {
"login": "ubiquity-os",
"id": 1,
"node_id": "MDQ6VXNlcjk4MDcwMDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ubiquity-os",
"html_url": "https://github.com/ubiquity-os",
"followers_url": "https://api.github.com/users/ubiquity-os/followers",
"following_url": "https://api.github.com/users/ubiquity-os/following{/other_user}",
"gists_url": "https://api.github.com/users/ubiquity-os/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ubiquity-os/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ubiquity-os/subscriptions",
"organizations_url": "https://api.github.com/users/ubiquity-os/orgs",
"repos_url": "https://api.github.com/users/ubiquity-os/repos",
"events_url": "https://api.github.com/users/ubiquity-os/events{/privacy}",
"received_events_url": "https://api.github.com/users/ubiquity-os/received_events",
"type": "User",
"site_admin": false
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uNDgzODE5NzI="
}
},
"settings": {"allowPublicQuery": false},
"ref": "",
"authToken": "{{token}}"
}