@sentry/junior-github 0.112.0 → 0.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db/schema.d.ts +203 -0
- package/dist/index.js +591 -76
- package/dist/issue-outcomes/store.d.ts +7 -0
- package/dist/outcomes/cost.d.ts +50 -0
- package/dist/pull-request-outcomes/store.d.ts +10 -0
- package/dist/tools/footer.d.ts +5 -0
- package/dist/webhooks/issue-outcome.d.ts +6 -1
- package/dist/webhooks/pull-request-outcome.d.ts +6 -1
- package/migrations/0005_github_cost_associations.sql +2 -0
- package/migrations/0006_fat_korvac.sql +9 -0
- package/migrations/meta/0005_snapshot.json +289 -0
- package/migrations/meta/0006_snapshot.json +336 -0
- package/migrations/meta/_journal.json +15 -1
- package/package.json +2 -2
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "5c4638ae-9d00-4ebe-8d93-989a8c3f879b",
|
|
3
|
+
"prevId": "c77b9011-8d0d-4d16-8b63-a9a45c162c6a",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"public.junior_github_issues": {
|
|
8
|
+
"name": "junior_github_issues",
|
|
9
|
+
"schema": "",
|
|
10
|
+
"columns": {
|
|
11
|
+
"issue_id": {
|
|
12
|
+
"name": "issue_id",
|
|
13
|
+
"type": "text",
|
|
14
|
+
"primaryKey": true,
|
|
15
|
+
"notNull": true
|
|
16
|
+
},
|
|
17
|
+
"repository_id": {
|
|
18
|
+
"name": "repository_id",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true
|
|
22
|
+
},
|
|
23
|
+
"repository_full_name": {
|
|
24
|
+
"name": "repository_full_name",
|
|
25
|
+
"type": "text",
|
|
26
|
+
"primaryKey": false,
|
|
27
|
+
"notNull": true
|
|
28
|
+
},
|
|
29
|
+
"number": {
|
|
30
|
+
"name": "number",
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"primaryKey": false,
|
|
33
|
+
"notNull": true
|
|
34
|
+
},
|
|
35
|
+
"state": {
|
|
36
|
+
"name": "state",
|
|
37
|
+
"type": "text",
|
|
38
|
+
"primaryKey": false,
|
|
39
|
+
"notNull": true
|
|
40
|
+
},
|
|
41
|
+
"state_reason": {
|
|
42
|
+
"name": "state_reason",
|
|
43
|
+
"type": "text",
|
|
44
|
+
"primaryKey": false,
|
|
45
|
+
"notNull": false
|
|
46
|
+
},
|
|
47
|
+
"conversation_ids": {
|
|
48
|
+
"name": "conversation_ids",
|
|
49
|
+
"type": "text[]",
|
|
50
|
+
"primaryKey": false,
|
|
51
|
+
"notNull": true,
|
|
52
|
+
"default": "ARRAY[]::text[]"
|
|
53
|
+
},
|
|
54
|
+
"opened_at": {
|
|
55
|
+
"name": "opened_at",
|
|
56
|
+
"type": "timestamp with time zone",
|
|
57
|
+
"primaryKey": false,
|
|
58
|
+
"notNull": true
|
|
59
|
+
},
|
|
60
|
+
"closed_at": {
|
|
61
|
+
"name": "closed_at",
|
|
62
|
+
"type": "timestamp with time zone",
|
|
63
|
+
"primaryKey": false,
|
|
64
|
+
"notNull": false
|
|
65
|
+
},
|
|
66
|
+
"updated_at": {
|
|
67
|
+
"name": "updated_at",
|
|
68
|
+
"type": "timestamp with time zone",
|
|
69
|
+
"primaryKey": false,
|
|
70
|
+
"notNull": true
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"indexes": {
|
|
74
|
+
"junior_github_issues_opened_at_idx": {
|
|
75
|
+
"name": "junior_github_issues_opened_at_idx",
|
|
76
|
+
"columns": [
|
|
77
|
+
{
|
|
78
|
+
"expression": "opened_at",
|
|
79
|
+
"isExpression": false,
|
|
80
|
+
"asc": true,
|
|
81
|
+
"nulls": "last"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"isUnique": false,
|
|
85
|
+
"concurrently": false,
|
|
86
|
+
"method": "btree",
|
|
87
|
+
"with": {}
|
|
88
|
+
},
|
|
89
|
+
"junior_github_issues_closed_at_idx": {
|
|
90
|
+
"name": "junior_github_issues_closed_at_idx",
|
|
91
|
+
"columns": [
|
|
92
|
+
{
|
|
93
|
+
"expression": "closed_at",
|
|
94
|
+
"isExpression": false,
|
|
95
|
+
"asc": true,
|
|
96
|
+
"nulls": "last"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"isUnique": false,
|
|
100
|
+
"concurrently": false,
|
|
101
|
+
"method": "btree",
|
|
102
|
+
"with": {}
|
|
103
|
+
},
|
|
104
|
+
"junior_github_issues_open_idx": {
|
|
105
|
+
"name": "junior_github_issues_open_idx",
|
|
106
|
+
"columns": [
|
|
107
|
+
{
|
|
108
|
+
"expression": "issue_id",
|
|
109
|
+
"isExpression": false,
|
|
110
|
+
"asc": true,
|
|
111
|
+
"nulls": "last"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"isUnique": false,
|
|
115
|
+
"where": "\"junior_github_issues\".\"state\" = 'open'",
|
|
116
|
+
"concurrently": false,
|
|
117
|
+
"method": "btree",
|
|
118
|
+
"with": {}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"foreignKeys": {},
|
|
122
|
+
"compositePrimaryKeys": {},
|
|
123
|
+
"uniqueConstraints": {},
|
|
124
|
+
"policies": {},
|
|
125
|
+
"checkConstraints": {},
|
|
126
|
+
"isRLSEnabled": false
|
|
127
|
+
},
|
|
128
|
+
"public.junior_github_pull_request_issues": {
|
|
129
|
+
"name": "junior_github_pull_request_issues",
|
|
130
|
+
"schema": "",
|
|
131
|
+
"columns": {
|
|
132
|
+
"pull_request_id": {
|
|
133
|
+
"name": "pull_request_id",
|
|
134
|
+
"type": "text",
|
|
135
|
+
"primaryKey": false,
|
|
136
|
+
"notNull": true
|
|
137
|
+
},
|
|
138
|
+
"issue_repository_full_name": {
|
|
139
|
+
"name": "issue_repository_full_name",
|
|
140
|
+
"type": "text",
|
|
141
|
+
"primaryKey": false,
|
|
142
|
+
"notNull": true
|
|
143
|
+
},
|
|
144
|
+
"issue_number": {
|
|
145
|
+
"name": "issue_number",
|
|
146
|
+
"type": "integer",
|
|
147
|
+
"primaryKey": false,
|
|
148
|
+
"notNull": true
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"indexes": {},
|
|
152
|
+
"foreignKeys": {
|
|
153
|
+
"junior_github_pull_request_issues_pull_request_id_junior_github_pull_requests_pull_request_id_fk": {
|
|
154
|
+
"name": "junior_github_pull_request_issues_pull_request_id_junior_github_pull_requests_pull_request_id_fk",
|
|
155
|
+
"tableFrom": "junior_github_pull_request_issues",
|
|
156
|
+
"tableTo": "junior_github_pull_requests",
|
|
157
|
+
"columnsFrom": [
|
|
158
|
+
"pull_request_id"
|
|
159
|
+
],
|
|
160
|
+
"columnsTo": [
|
|
161
|
+
"pull_request_id"
|
|
162
|
+
],
|
|
163
|
+
"onDelete": "cascade",
|
|
164
|
+
"onUpdate": "no action"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"compositePrimaryKeys": {
|
|
168
|
+
"junior_github_pull_request_issues_pull_request_id_issue_repository_full_name_issue_number_pk": {
|
|
169
|
+
"name": "junior_github_pull_request_issues_pull_request_id_issue_repository_full_name_issue_number_pk",
|
|
170
|
+
"columns": [
|
|
171
|
+
"pull_request_id",
|
|
172
|
+
"issue_repository_full_name",
|
|
173
|
+
"issue_number"
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"uniqueConstraints": {},
|
|
178
|
+
"policies": {},
|
|
179
|
+
"checkConstraints": {},
|
|
180
|
+
"isRLSEnabled": false
|
|
181
|
+
},
|
|
182
|
+
"public.junior_github_pull_requests": {
|
|
183
|
+
"name": "junior_github_pull_requests",
|
|
184
|
+
"schema": "",
|
|
185
|
+
"columns": {
|
|
186
|
+
"pull_request_id": {
|
|
187
|
+
"name": "pull_request_id",
|
|
188
|
+
"type": "text",
|
|
189
|
+
"primaryKey": true,
|
|
190
|
+
"notNull": true
|
|
191
|
+
},
|
|
192
|
+
"repository_id": {
|
|
193
|
+
"name": "repository_id",
|
|
194
|
+
"type": "text",
|
|
195
|
+
"primaryKey": false,
|
|
196
|
+
"notNull": true
|
|
197
|
+
},
|
|
198
|
+
"repository_full_name": {
|
|
199
|
+
"name": "repository_full_name",
|
|
200
|
+
"type": "text",
|
|
201
|
+
"primaryKey": false,
|
|
202
|
+
"notNull": true
|
|
203
|
+
},
|
|
204
|
+
"number": {
|
|
205
|
+
"name": "number",
|
|
206
|
+
"type": "integer",
|
|
207
|
+
"primaryKey": false,
|
|
208
|
+
"notNull": true
|
|
209
|
+
},
|
|
210
|
+
"state": {
|
|
211
|
+
"name": "state",
|
|
212
|
+
"type": "text",
|
|
213
|
+
"primaryKey": false,
|
|
214
|
+
"notNull": true
|
|
215
|
+
},
|
|
216
|
+
"commit_composition": {
|
|
217
|
+
"name": "commit_composition",
|
|
218
|
+
"type": "text",
|
|
219
|
+
"primaryKey": false,
|
|
220
|
+
"notNull": false
|
|
221
|
+
},
|
|
222
|
+
"conversation_ids": {
|
|
223
|
+
"name": "conversation_ids",
|
|
224
|
+
"type": "text[]",
|
|
225
|
+
"primaryKey": false,
|
|
226
|
+
"notNull": true,
|
|
227
|
+
"default": "ARRAY[]::text[]"
|
|
228
|
+
},
|
|
229
|
+
"opened_at": {
|
|
230
|
+
"name": "opened_at",
|
|
231
|
+
"type": "timestamp with time zone",
|
|
232
|
+
"primaryKey": false,
|
|
233
|
+
"notNull": true
|
|
234
|
+
},
|
|
235
|
+
"merged_at": {
|
|
236
|
+
"name": "merged_at",
|
|
237
|
+
"type": "timestamp with time zone",
|
|
238
|
+
"primaryKey": false,
|
|
239
|
+
"notNull": false
|
|
240
|
+
},
|
|
241
|
+
"closed_at": {
|
|
242
|
+
"name": "closed_at",
|
|
243
|
+
"type": "timestamp with time zone",
|
|
244
|
+
"primaryKey": false,
|
|
245
|
+
"notNull": false
|
|
246
|
+
},
|
|
247
|
+
"updated_at": {
|
|
248
|
+
"name": "updated_at",
|
|
249
|
+
"type": "timestamp with time zone",
|
|
250
|
+
"primaryKey": false,
|
|
251
|
+
"notNull": true
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"indexes": {
|
|
255
|
+
"junior_github_pull_requests_opened_at_idx": {
|
|
256
|
+
"name": "junior_github_pull_requests_opened_at_idx",
|
|
257
|
+
"columns": [
|
|
258
|
+
{
|
|
259
|
+
"expression": "opened_at",
|
|
260
|
+
"isExpression": false,
|
|
261
|
+
"asc": true,
|
|
262
|
+
"nulls": "last"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"isUnique": false,
|
|
266
|
+
"concurrently": false,
|
|
267
|
+
"method": "btree",
|
|
268
|
+
"with": {}
|
|
269
|
+
},
|
|
270
|
+
"junior_github_pull_requests_merged_at_idx": {
|
|
271
|
+
"name": "junior_github_pull_requests_merged_at_idx",
|
|
272
|
+
"columns": [
|
|
273
|
+
{
|
|
274
|
+
"expression": "merged_at",
|
|
275
|
+
"isExpression": false,
|
|
276
|
+
"asc": true,
|
|
277
|
+
"nulls": "last"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"isUnique": false,
|
|
281
|
+
"concurrently": false,
|
|
282
|
+
"method": "btree",
|
|
283
|
+
"with": {}
|
|
284
|
+
},
|
|
285
|
+
"junior_github_pull_requests_closed_at_idx": {
|
|
286
|
+
"name": "junior_github_pull_requests_closed_at_idx",
|
|
287
|
+
"columns": [
|
|
288
|
+
{
|
|
289
|
+
"expression": "closed_at",
|
|
290
|
+
"isExpression": false,
|
|
291
|
+
"asc": true,
|
|
292
|
+
"nulls": "last"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"isUnique": false,
|
|
296
|
+
"concurrently": false,
|
|
297
|
+
"method": "btree",
|
|
298
|
+
"with": {}
|
|
299
|
+
},
|
|
300
|
+
"junior_github_pull_requests_open_idx": {
|
|
301
|
+
"name": "junior_github_pull_requests_open_idx",
|
|
302
|
+
"columns": [
|
|
303
|
+
{
|
|
304
|
+
"expression": "pull_request_id",
|
|
305
|
+
"isExpression": false,
|
|
306
|
+
"asc": true,
|
|
307
|
+
"nulls": "last"
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"isUnique": false,
|
|
311
|
+
"where": "\"junior_github_pull_requests\".\"state\" = 'open'",
|
|
312
|
+
"concurrently": false,
|
|
313
|
+
"method": "btree",
|
|
314
|
+
"with": {}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"foreignKeys": {},
|
|
318
|
+
"compositePrimaryKeys": {},
|
|
319
|
+
"uniqueConstraints": {},
|
|
320
|
+
"policies": {},
|
|
321
|
+
"checkConstraints": {},
|
|
322
|
+
"isRLSEnabled": false
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"enums": {},
|
|
326
|
+
"schemas": {},
|
|
327
|
+
"sequences": {},
|
|
328
|
+
"roles": {},
|
|
329
|
+
"policies": {},
|
|
330
|
+
"views": {},
|
|
331
|
+
"_meta": {
|
|
332
|
+
"columns": {},
|
|
333
|
+
"schemas": {},
|
|
334
|
+
"tables": {}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
@@ -36,6 +36,20 @@
|
|
|
36
36
|
"when": 1784774242129,
|
|
37
37
|
"tag": "0004_marvelous_toad_men",
|
|
38
38
|
"breakpoints": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"idx": 5,
|
|
42
|
+
"version": "7",
|
|
43
|
+
"when": 1784937000000,
|
|
44
|
+
"tag": "0005_github_cost_associations",
|
|
45
|
+
"breakpoints": true
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"idx": 6,
|
|
49
|
+
"version": "7",
|
|
50
|
+
"when": 1784947522832,
|
|
51
|
+
"tag": "0006_fat_korvac",
|
|
52
|
+
"breakpoints": true
|
|
39
53
|
}
|
|
40
54
|
]
|
|
41
|
-
}
|
|
55
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.114.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@sinclair/typebox": "^0.34.49",
|
|
32
32
|
"drizzle-orm": "^0.45.2",
|
|
33
33
|
"zod": "^4.4.3",
|
|
34
|
-
"@sentry/junior-plugin-api": "0.
|
|
34
|
+
"@sentry/junior-plugin-api": "0.114.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^25.9.1",
|