@sentry/junior-github 0.264.0 → 0.266.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.
@@ -0,0 +1,404 @@
1
+ {
2
+ "id": "6b12b332-4224-4e69-9ab7-51df6a4dd91c",
3
+ "prevId": "da9cceed-a211-4f1b-a5b8-ac4237b9caf5",
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_request_requesters": {
183
+ "name": "junior_github_pull_request_requesters",
184
+ "schema": "",
185
+ "columns": {
186
+ "repository_full_name": {
187
+ "name": "repository_full_name",
188
+ "type": "text",
189
+ "primaryKey": false,
190
+ "notNull": true
191
+ },
192
+ "number": {
193
+ "name": "number",
194
+ "type": "integer",
195
+ "primaryKey": false,
196
+ "notNull": true
197
+ },
198
+ "identity_id": {
199
+ "name": "identity_id",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": true
203
+ },
204
+ "created_at": {
205
+ "name": "created_at",
206
+ "type": "timestamp with time zone",
207
+ "primaryKey": false,
208
+ "notNull": true
209
+ },
210
+ "updated_at": {
211
+ "name": "updated_at",
212
+ "type": "timestamp with time zone",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ }
216
+ },
217
+ "indexes": {},
218
+ "foreignKeys": {},
219
+ "compositePrimaryKeys": {
220
+ "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk": {
221
+ "name": "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk",
222
+ "columns": [
223
+ "repository_full_name",
224
+ "number",
225
+ "identity_id"
226
+ ]
227
+ }
228
+ },
229
+ "uniqueConstraints": {},
230
+ "policies": {},
231
+ "checkConstraints": {},
232
+ "isRLSEnabled": false
233
+ },
234
+ "public.junior_github_pull_requests": {
235
+ "name": "junior_github_pull_requests",
236
+ "schema": "",
237
+ "columns": {
238
+ "pull_request_id": {
239
+ "name": "pull_request_id",
240
+ "type": "text",
241
+ "primaryKey": true,
242
+ "notNull": true
243
+ },
244
+ "repository_id": {
245
+ "name": "repository_id",
246
+ "type": "text",
247
+ "primaryKey": false,
248
+ "notNull": true
249
+ },
250
+ "repository_full_name": {
251
+ "name": "repository_full_name",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": true
255
+ },
256
+ "number": {
257
+ "name": "number",
258
+ "type": "integer",
259
+ "primaryKey": false,
260
+ "notNull": true
261
+ },
262
+ "state": {
263
+ "name": "state",
264
+ "type": "text",
265
+ "primaryKey": false,
266
+ "notNull": true
267
+ },
268
+ "commit_composition": {
269
+ "name": "commit_composition",
270
+ "type": "text",
271
+ "primaryKey": false,
272
+ "notNull": false
273
+ },
274
+ "conversation_ids": {
275
+ "name": "conversation_ids",
276
+ "type": "text[]",
277
+ "primaryKey": false,
278
+ "notNull": true,
279
+ "default": "ARRAY[]::text[]"
280
+ },
281
+ "opened_at": {
282
+ "name": "opened_at",
283
+ "type": "timestamp with time zone",
284
+ "primaryKey": false,
285
+ "notNull": true
286
+ },
287
+ "merged_at": {
288
+ "name": "merged_at",
289
+ "type": "timestamp with time zone",
290
+ "primaryKey": false,
291
+ "notNull": false
292
+ },
293
+ "closed_at": {
294
+ "name": "closed_at",
295
+ "type": "timestamp with time zone",
296
+ "primaryKey": false,
297
+ "notNull": false
298
+ },
299
+ "updated_at": {
300
+ "name": "updated_at",
301
+ "type": "timestamp with time zone",
302
+ "primaryKey": false,
303
+ "notNull": true
304
+ }
305
+ },
306
+ "indexes": {
307
+ "junior_github_pull_requests_opened_at_idx": {
308
+ "name": "junior_github_pull_requests_opened_at_idx",
309
+ "columns": [
310
+ {
311
+ "expression": "opened_at",
312
+ "isExpression": false,
313
+ "asc": true,
314
+ "nulls": "last"
315
+ }
316
+ ],
317
+ "isUnique": false,
318
+ "concurrently": false,
319
+ "method": "btree",
320
+ "with": {}
321
+ },
322
+ "junior_github_pull_requests_merged_at_idx": {
323
+ "name": "junior_github_pull_requests_merged_at_idx",
324
+ "columns": [
325
+ {
326
+ "expression": "merged_at",
327
+ "isExpression": false,
328
+ "asc": true,
329
+ "nulls": "last"
330
+ }
331
+ ],
332
+ "isUnique": false,
333
+ "concurrently": false,
334
+ "method": "btree",
335
+ "with": {}
336
+ },
337
+ "junior_github_pull_requests_closed_at_idx": {
338
+ "name": "junior_github_pull_requests_closed_at_idx",
339
+ "columns": [
340
+ {
341
+ "expression": "closed_at",
342
+ "isExpression": false,
343
+ "asc": true,
344
+ "nulls": "last"
345
+ }
346
+ ],
347
+ "isUnique": false,
348
+ "concurrently": false,
349
+ "method": "btree",
350
+ "with": {}
351
+ },
352
+ "junior_github_pull_requests_open_idx": {
353
+ "name": "junior_github_pull_requests_open_idx",
354
+ "columns": [
355
+ {
356
+ "expression": "pull_request_id",
357
+ "isExpression": false,
358
+ "asc": true,
359
+ "nulls": "last"
360
+ }
361
+ ],
362
+ "isUnique": false,
363
+ "where": "\"junior_github_pull_requests\".\"state\" = 'open'",
364
+ "concurrently": false,
365
+ "method": "btree",
366
+ "with": {}
367
+ },
368
+ "junior_github_pull_requests_unmerged_conversations_idx": {
369
+ "name": "junior_github_pull_requests_unmerged_conversations_idx",
370
+ "columns": [
371
+ {
372
+ "expression": "conversation_ids",
373
+ "isExpression": false,
374
+ "asc": true,
375
+ "nulls": "last"
376
+ }
377
+ ],
378
+ "isUnique": false,
379
+ "where": "\"junior_github_pull_requests\".\"state\" <> 'merged'",
380
+ "concurrently": false,
381
+ "method": "gin",
382
+ "with": {}
383
+ }
384
+ },
385
+ "foreignKeys": {},
386
+ "compositePrimaryKeys": {},
387
+ "uniqueConstraints": {},
388
+ "policies": {},
389
+ "checkConstraints": {},
390
+ "isRLSEnabled": false
391
+ }
392
+ },
393
+ "enums": {},
394
+ "schemas": {},
395
+ "sequences": {},
396
+ "roles": {},
397
+ "policies": {},
398
+ "views": {},
399
+ "_meta": {
400
+ "columns": {},
401
+ "schemas": {},
402
+ "tables": {}
403
+ }
404
+ }
@@ -64,6 +64,13 @@
64
64
  "when": 1787598510781,
65
65
  "tag": "0008_native_code_backfill",
66
66
  "breakpoints": true
67
+ },
68
+ {
69
+ "idx": 9,
70
+ "version": "7",
71
+ "when": 1793225353668,
72
+ "tag": "0009_nostalgic_thing",
73
+ "breakpoints": true
67
74
  }
68
75
  ]
69
- }
76
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-github",
3
- "version": "0.264.0",
3
+ "version": "0.266.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -32,7 +32,7 @@
32
32
  "drizzle-orm": "^0.45.2",
33
33
  "marked": "^18.1.2",
34
34
  "zod": "^4.5.4",
35
- "@sentry/junior-plugin-api": "0.264.0"
35
+ "@sentry/junior-plugin-api": "0.266.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@oxlint/plugins": "1.79.0",
@@ -1,20 +0,0 @@
1
- import type { EventInput, EventPublisher, PluginLogger } from "@sentry/junior-plugin-api";
2
- /** The author whose repository role a lookup reads. */
3
- export interface GitHubAuthorRoleTarget {
4
- login: string;
5
- repositoryFullName: string;
6
- }
7
- /**
8
- * Add the author's repository role to events that name a pull request author.
9
- * It loads the role only when a Watch or event automation filters on
10
- * `authorRole`, so other deliveries make no extra GitHub calls. A failed load
11
- * leaves the field out, so filters on it do not match.
12
- */
13
- export declare function withGitHubPullRequestAuthorRole(args: {
14
- body: unknown;
15
- deliveryId: string;
16
- events: EventInput[];
17
- load?(target: GitHubAuthorRoleTarget): Promise<string>;
18
- log?: Pick<PluginLogger, "error">;
19
- neededMatchKeys: EventPublisher["neededMatchKeys"];
20
- }): Promise<EventInput[]>;