@sentry/junior-github 0.314.0 → 0.315.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.
Files changed (70) hide show
  1. package/dist/{events-D51HE9X3.js → events-D3Qnj4yY.js} +56 -18
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +3275 -2113
  4. package/dist/testing.js +1 -1
  5. package/migrations/20260722180343_pull_request_outcomes/snapshot.json +315 -0
  6. package/migrations/20260722224832_issue_outcomes/snapshot.json +301 -0
  7. package/migrations/20260722230324_pull_request_commit_composition/snapshot.json +42 -0
  8. package/migrations/20260722231413_pull_request_conversations/snapshot.json +42 -0
  9. package/migrations/20260723023722_marvelous_toad_men/snapshot.json +42 -0
  10. package/migrations/20260724235000_github_cost_associations/snapshot.json +73 -0
  11. package/migrations/20260725024522_fat_korvac/snapshot.json +158 -0
  12. package/migrations/20260811221145_shallow_millenium_guard/snapshot.json +54 -0
  13. package/migrations/20260824190830_native_code_backfill/snapshot.json +9 -0
  14. package/migrations/20261028220913_nostalgic_thing/snapshot.json +128 -0
  15. package/migrations/20261101195735_sleepy_slayback/snapshot.json +169 -0
  16. package/migrations/20261112142844_pull_request_draft/snapshot.json +42 -0
  17. package/migrations/20261113213858_pull_request_next_action/snapshot.json +61 -0
  18. package/migrations/20261119095049_conflict_fixes_resumed_at/snapshot.json +42 -0
  19. package/migrations/20261119230607_conflict_fixes/snapshot.json +42 -0
  20. package/migrations/20261120232426_conflict_fix_asked_at/snapshot.json +42 -0
  21. package/migrations/20261121002146_pull_request_finished_at/snapshot.json +42 -0
  22. package/migrations/20261121002159_pull_request_lifecycle_copies/snapshot.json +118 -0
  23. package/migrations/20261123212042_drop_pull_request_issues/snapshot.json +51 -0
  24. package/migrations/20261123220932_drop_github_issues/snapshot.json +83 -0
  25. package/migrations/20261123224011_pull_request_lifecycle_backfill/migration.sql +80 -0
  26. package/migrations/20261123224011_pull_request_lifecycle_backfill/snapshot.json +9 -0
  27. package/migrations/20261123224012_pull_request_lifecycle_in_code_index/migration.sql +10 -0
  28. package/migrations/20261123224012_pull_request_lifecycle_in_code_index/snapshot.json +219 -0
  29. package/package.json +4 -4
  30. package/migrations/meta/0000_snapshot.json +0 -148
  31. package/migrations/meta/0001_snapshot.json +0 -256
  32. package/migrations/meta/0002_snapshot.json +0 -262
  33. package/migrations/meta/0003_snapshot.json +0 -269
  34. package/migrations/meta/0004_snapshot.json +0 -275
  35. package/migrations/meta/0005_snapshot.json +0 -289
  36. package/migrations/meta/0006_snapshot.json +0 -336
  37. package/migrations/meta/0007_snapshot.json +0 -352
  38. package/migrations/meta/0008_snapshot.json +0 -348
  39. package/migrations/meta/0009_snapshot.json +0 -404
  40. package/migrations/meta/0010_snapshot.json +0 -427
  41. package/migrations/meta/0011_snapshot.json +0 -434
  42. package/migrations/meta/0012_snapshot.json +0 -434
  43. package/migrations/meta/0013_snapshot.json +0 -448
  44. package/migrations/meta/0014_snapshot.json +0 -455
  45. package/migrations/meta/0015_snapshot.json +0 -461
  46. package/migrations/meta/0016_snapshot.json +0 -467
  47. package/migrations/meta/0017_snapshot.json +0 -418
  48. package/migrations/meta/0018_snapshot.json +0 -364
  49. package/migrations/meta/0019_snapshot.json +0 -243
  50. package/migrations/meta/_journal.json +0 -146
  51. /package/migrations/{0000_pull_request_outcomes.sql → 20260722180343_pull_request_outcomes/migration.sql} +0 -0
  52. /package/migrations/{0001_issue_outcomes.sql → 20260722224832_issue_outcomes/migration.sql} +0 -0
  53. /package/migrations/{0002_pull_request_commit_composition.sql → 20260722230324_pull_request_commit_composition/migration.sql} +0 -0
  54. /package/migrations/{0003_pull_request_conversations.sql → 20260722231413_pull_request_conversations/migration.sql} +0 -0
  55. /package/migrations/{0004_marvelous_toad_men.sql → 20260723023722_marvelous_toad_men/migration.sql} +0 -0
  56. /package/migrations/{0005_github_cost_associations.sql → 20260724235000_github_cost_associations/migration.sql} +0 -0
  57. /package/migrations/{0006_fat_korvac.sql → 20260725024522_fat_korvac/migration.sql} +0 -0
  58. /package/migrations/{0007_shallow_millenium_guard.sql → 20260811221145_shallow_millenium_guard/migration.sql} +0 -0
  59. /package/migrations/{0008_native_code_backfill.sql → 20260824190830_native_code_backfill/migration.sql} +0 -0
  60. /package/migrations/{0009_nostalgic_thing.sql → 20261028220913_nostalgic_thing/migration.sql} +0 -0
  61. /package/migrations/{0010_sleepy_slayback.sql → 20261101195735_sleepy_slayback/migration.sql} +0 -0
  62. /package/migrations/{0011_pull_request_draft.sql → 20261112142844_pull_request_draft/migration.sql} +0 -0
  63. /package/migrations/{0012_pull_request_next_action.sql → 20261113213858_pull_request_next_action/migration.sql} +0 -0
  64. /package/migrations/{0013_conflict_fixes_resumed_at.sql → 20261119095049_conflict_fixes_resumed_at/migration.sql} +0 -0
  65. /package/migrations/{0014_conflict_fixes.sql → 20261119230607_conflict_fixes/migration.sql} +0 -0
  66. /package/migrations/{0015_conflict_fix_asked_at.sql → 20261120232426_conflict_fix_asked_at/migration.sql} +0 -0
  67. /package/migrations/{0016_pull_request_finished_at.sql → 20261121002146_pull_request_finished_at/migration.sql} +0 -0
  68. /package/migrations/{0017_pull_request_lifecycle_copies.sql → 20261121002159_pull_request_lifecycle_copies/migration.sql} +0 -0
  69. /package/migrations/{0018_drop_pull_request_issues.sql → 20261123212042_drop_pull_request_issues/migration.sql} +0 -0
  70. /package/migrations/{0019_drop_github_issues.sql → 20261123220932_drop_github_issues/migration.sql} +0 -0
@@ -1,364 +0,0 @@
1
- {
2
- "id": "b85b88bb-e673-46b0-bf5a-e3582daae286",
3
- "prevId": "84ce1936-1b4b-461e-95a0-f3dbfd5d14fb",
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_requesters": {
129
- "name": "junior_github_pull_request_requesters",
130
- "schema": "",
131
- "columns": {
132
- "repository_full_name": {
133
- "name": "repository_full_name",
134
- "type": "text",
135
- "primaryKey": false,
136
- "notNull": true
137
- },
138
- "number": {
139
- "name": "number",
140
- "type": "integer",
141
- "primaryKey": false,
142
- "notNull": true
143
- },
144
- "identity_id": {
145
- "name": "identity_id",
146
- "type": "text",
147
- "primaryKey": false,
148
- "notNull": true
149
- },
150
- "conversation_id": {
151
- "name": "conversation_id",
152
- "type": "text",
153
- "primaryKey": false,
154
- "notNull": false
155
- },
156
- "created_at": {
157
- "name": "created_at",
158
- "type": "timestamp with time zone",
159
- "primaryKey": false,
160
- "notNull": true
161
- },
162
- "updated_at": {
163
- "name": "updated_at",
164
- "type": "timestamp with time zone",
165
- "primaryKey": false,
166
- "notNull": true
167
- }
168
- },
169
- "indexes": {},
170
- "foreignKeys": {},
171
- "compositePrimaryKeys": {
172
- "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk": {
173
- "name": "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk",
174
- "columns": [
175
- "repository_full_name",
176
- "number",
177
- "identity_id"
178
- ]
179
- }
180
- },
181
- "uniqueConstraints": {},
182
- "policies": {},
183
- "checkConstraints": {},
184
- "isRLSEnabled": false
185
- },
186
- "public.junior_github_pull_requests": {
187
- "name": "junior_github_pull_requests",
188
- "schema": "",
189
- "columns": {
190
- "pull_request_id": {
191
- "name": "pull_request_id",
192
- "type": "text",
193
- "primaryKey": true,
194
- "notNull": true
195
- },
196
- "repository_id": {
197
- "name": "repository_id",
198
- "type": "text",
199
- "primaryKey": false,
200
- "notNull": true
201
- },
202
- "repository_full_name": {
203
- "name": "repository_full_name",
204
- "type": "text",
205
- "primaryKey": false,
206
- "notNull": true
207
- },
208
- "number": {
209
- "name": "number",
210
- "type": "integer",
211
- "primaryKey": false,
212
- "notNull": true
213
- },
214
- "state": {
215
- "name": "state",
216
- "type": "text",
217
- "primaryKey": false,
218
- "notNull": true
219
- },
220
- "commit_composition": {
221
- "name": "commit_composition",
222
- "type": "text",
223
- "primaryKey": false,
224
- "notNull": false
225
- },
226
- "conversation_ids": {
227
- "name": "conversation_ids",
228
- "type": "text[]",
229
- "primaryKey": false,
230
- "notNull": true,
231
- "default": "ARRAY[]::text[]"
232
- },
233
- "opened_at": {
234
- "name": "opened_at",
235
- "type": "timestamp with time zone",
236
- "primaryKey": false,
237
- "notNull": true
238
- },
239
- "finished_at": {
240
- "name": "finished_at",
241
- "type": "timestamp with time zone",
242
- "primaryKey": false,
243
- "notNull": false
244
- },
245
- "updated_at": {
246
- "name": "updated_at",
247
- "type": "timestamp with time zone",
248
- "primaryKey": false,
249
- "notNull": true
250
- },
251
- "next_action": {
252
- "name": "next_action",
253
- "type": "text",
254
- "primaryKey": false,
255
- "notNull": false
256
- },
257
- "ready_sync_requests": {
258
- "name": "ready_sync_requests",
259
- "type": "integer",
260
- "primaryKey": false,
261
- "notNull": true,
262
- "default": 0
263
- },
264
- "ready_sync_id": {
265
- "name": "ready_sync_id",
266
- "type": "integer",
267
- "primaryKey": false,
268
- "notNull": false
269
- },
270
- "ready_sync_at": {
271
- "name": "ready_sync_at",
272
- "type": "timestamp with time zone",
273
- "primaryKey": false,
274
- "notNull": false
275
- },
276
- "conflict_fixes_resumed_at": {
277
- "name": "conflict_fixes_resumed_at",
278
- "type": "timestamp with time zone",
279
- "primaryKey": false,
280
- "notNull": false
281
- },
282
- "conflict_fix_asked_at": {
283
- "name": "conflict_fix_asked_at",
284
- "type": "timestamp with time zone",
285
- "primaryKey": false,
286
- "notNull": false
287
- },
288
- "conflict_fixes": {
289
- "name": "conflict_fixes",
290
- "type": "jsonb",
291
- "primaryKey": false,
292
- "notNull": true,
293
- "default": "'[]'::jsonb"
294
- }
295
- },
296
- "indexes": {
297
- "junior_github_pull_requests_opened_at_idx": {
298
- "name": "junior_github_pull_requests_opened_at_idx",
299
- "columns": [
300
- {
301
- "expression": "opened_at",
302
- "isExpression": false,
303
- "asc": true,
304
- "nulls": "last"
305
- }
306
- ],
307
- "isUnique": false,
308
- "concurrently": false,
309
- "method": "btree",
310
- "with": {}
311
- },
312
- "junior_github_pull_requests_open_idx": {
313
- "name": "junior_github_pull_requests_open_idx",
314
- "columns": [
315
- {
316
- "expression": "pull_request_id",
317
- "isExpression": false,
318
- "asc": true,
319
- "nulls": "last"
320
- }
321
- ],
322
- "isUnique": false,
323
- "where": "\"junior_github_pull_requests\".\"state\" = 'open'",
324
- "concurrently": false,
325
- "method": "btree",
326
- "with": {}
327
- },
328
- "junior_github_pull_requests_unmerged_conversations_idx": {
329
- "name": "junior_github_pull_requests_unmerged_conversations_idx",
330
- "columns": [
331
- {
332
- "expression": "conversation_ids",
333
- "isExpression": false,
334
- "asc": true,
335
- "nulls": "last"
336
- }
337
- ],
338
- "isUnique": false,
339
- "where": "\"junior_github_pull_requests\".\"state\" <> 'merged'",
340
- "concurrently": false,
341
- "method": "gin",
342
- "with": {}
343
- }
344
- },
345
- "foreignKeys": {},
346
- "compositePrimaryKeys": {},
347
- "uniqueConstraints": {},
348
- "policies": {},
349
- "checkConstraints": {},
350
- "isRLSEnabled": false
351
- }
352
- },
353
- "enums": {},
354
- "schemas": {},
355
- "sequences": {},
356
- "roles": {},
357
- "policies": {},
358
- "views": {},
359
- "_meta": {
360
- "columns": {},
361
- "schemas": {},
362
- "tables": {}
363
- }
364
- }
@@ -1,243 +0,0 @@
1
- {
2
- "id": "1fadcb30-52c2-4998-858b-124b9dcbc2da",
3
- "prevId": "b85b88bb-e673-46b0-bf5a-e3582daae286",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.junior_github_pull_request_requesters": {
8
- "name": "junior_github_pull_request_requesters",
9
- "schema": "",
10
- "columns": {
11
- "repository_full_name": {
12
- "name": "repository_full_name",
13
- "type": "text",
14
- "primaryKey": false,
15
- "notNull": true
16
- },
17
- "number": {
18
- "name": "number",
19
- "type": "integer",
20
- "primaryKey": false,
21
- "notNull": true
22
- },
23
- "identity_id": {
24
- "name": "identity_id",
25
- "type": "text",
26
- "primaryKey": false,
27
- "notNull": true
28
- },
29
- "conversation_id": {
30
- "name": "conversation_id",
31
- "type": "text",
32
- "primaryKey": false,
33
- "notNull": false
34
- },
35
- "created_at": {
36
- "name": "created_at",
37
- "type": "timestamp with time zone",
38
- "primaryKey": false,
39
- "notNull": true
40
- },
41
- "updated_at": {
42
- "name": "updated_at",
43
- "type": "timestamp with time zone",
44
- "primaryKey": false,
45
- "notNull": true
46
- }
47
- },
48
- "indexes": {},
49
- "foreignKeys": {},
50
- "compositePrimaryKeys": {
51
- "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk": {
52
- "name": "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk",
53
- "columns": [
54
- "repository_full_name",
55
- "number",
56
- "identity_id"
57
- ]
58
- }
59
- },
60
- "uniqueConstraints": {},
61
- "policies": {},
62
- "checkConstraints": {},
63
- "isRLSEnabled": false
64
- },
65
- "public.junior_github_pull_requests": {
66
- "name": "junior_github_pull_requests",
67
- "schema": "",
68
- "columns": {
69
- "pull_request_id": {
70
- "name": "pull_request_id",
71
- "type": "text",
72
- "primaryKey": true,
73
- "notNull": true
74
- },
75
- "repository_id": {
76
- "name": "repository_id",
77
- "type": "text",
78
- "primaryKey": false,
79
- "notNull": true
80
- },
81
- "repository_full_name": {
82
- "name": "repository_full_name",
83
- "type": "text",
84
- "primaryKey": false,
85
- "notNull": true
86
- },
87
- "number": {
88
- "name": "number",
89
- "type": "integer",
90
- "primaryKey": false,
91
- "notNull": true
92
- },
93
- "state": {
94
- "name": "state",
95
- "type": "text",
96
- "primaryKey": false,
97
- "notNull": true
98
- },
99
- "commit_composition": {
100
- "name": "commit_composition",
101
- "type": "text",
102
- "primaryKey": false,
103
- "notNull": false
104
- },
105
- "conversation_ids": {
106
- "name": "conversation_ids",
107
- "type": "text[]",
108
- "primaryKey": false,
109
- "notNull": true,
110
- "default": "ARRAY[]::text[]"
111
- },
112
- "opened_at": {
113
- "name": "opened_at",
114
- "type": "timestamp with time zone",
115
- "primaryKey": false,
116
- "notNull": true
117
- },
118
- "finished_at": {
119
- "name": "finished_at",
120
- "type": "timestamp with time zone",
121
- "primaryKey": false,
122
- "notNull": false
123
- },
124
- "updated_at": {
125
- "name": "updated_at",
126
- "type": "timestamp with time zone",
127
- "primaryKey": false,
128
- "notNull": true
129
- },
130
- "next_action": {
131
- "name": "next_action",
132
- "type": "text",
133
- "primaryKey": false,
134
- "notNull": false
135
- },
136
- "ready_sync_requests": {
137
- "name": "ready_sync_requests",
138
- "type": "integer",
139
- "primaryKey": false,
140
- "notNull": true,
141
- "default": 0
142
- },
143
- "ready_sync_id": {
144
- "name": "ready_sync_id",
145
- "type": "integer",
146
- "primaryKey": false,
147
- "notNull": false
148
- },
149
- "ready_sync_at": {
150
- "name": "ready_sync_at",
151
- "type": "timestamp with time zone",
152
- "primaryKey": false,
153
- "notNull": false
154
- },
155
- "conflict_fixes_resumed_at": {
156
- "name": "conflict_fixes_resumed_at",
157
- "type": "timestamp with time zone",
158
- "primaryKey": false,
159
- "notNull": false
160
- },
161
- "conflict_fix_asked_at": {
162
- "name": "conflict_fix_asked_at",
163
- "type": "timestamp with time zone",
164
- "primaryKey": false,
165
- "notNull": false
166
- },
167
- "conflict_fixes": {
168
- "name": "conflict_fixes",
169
- "type": "jsonb",
170
- "primaryKey": false,
171
- "notNull": true,
172
- "default": "'[]'::jsonb"
173
- }
174
- },
175
- "indexes": {
176
- "junior_github_pull_requests_opened_at_idx": {
177
- "name": "junior_github_pull_requests_opened_at_idx",
178
- "columns": [
179
- {
180
- "expression": "opened_at",
181
- "isExpression": false,
182
- "asc": true,
183
- "nulls": "last"
184
- }
185
- ],
186
- "isUnique": false,
187
- "concurrently": false,
188
- "method": "btree",
189
- "with": {}
190
- },
191
- "junior_github_pull_requests_open_idx": {
192
- "name": "junior_github_pull_requests_open_idx",
193
- "columns": [
194
- {
195
- "expression": "pull_request_id",
196
- "isExpression": false,
197
- "asc": true,
198
- "nulls": "last"
199
- }
200
- ],
201
- "isUnique": false,
202
- "where": "\"junior_github_pull_requests\".\"state\" = 'open'",
203
- "concurrently": false,
204
- "method": "btree",
205
- "with": {}
206
- },
207
- "junior_github_pull_requests_unmerged_conversations_idx": {
208
- "name": "junior_github_pull_requests_unmerged_conversations_idx",
209
- "columns": [
210
- {
211
- "expression": "conversation_ids",
212
- "isExpression": false,
213
- "asc": true,
214
- "nulls": "last"
215
- }
216
- ],
217
- "isUnique": false,
218
- "where": "\"junior_github_pull_requests\".\"state\" <> 'merged'",
219
- "concurrently": false,
220
- "method": "gin",
221
- "with": {}
222
- }
223
- },
224
- "foreignKeys": {},
225
- "compositePrimaryKeys": {},
226
- "uniqueConstraints": {},
227
- "policies": {},
228
- "checkConstraints": {},
229
- "isRLSEnabled": false
230
- }
231
- },
232
- "enums": {},
233
- "schemas": {},
234
- "sequences": {},
235
- "roles": {},
236
- "policies": {},
237
- "views": {},
238
- "_meta": {
239
- "columns": {},
240
- "schemas": {},
241
- "tables": {}
242
- }
243
- }