@sentry/junior-github 0.107.1 → 0.108.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/README.md +3 -3
- package/SETUP.md +11 -6
- package/dist/db/database.d.ts +5 -0
- package/dist/db/schema.d.ts +425 -0
- package/dist/index.js +706 -91
- package/dist/issue-outcomes/store.d.ts +24 -0
- package/dist/{pull-request-outcomes → outcomes}/report.d.ts +2 -2
- package/dist/pull-request-outcomes/commit-composition.d.ts +6 -0
- package/dist/pull-request-outcomes/store.d.ts +18 -5
- package/dist/tools/footer.d.ts +2 -0
- package/dist/webhooks/handler.d.ts +8 -2
- package/dist/webhooks/issue-outcome.d.ts +6 -0
- package/dist/webhooks/ownership.d.ts +2 -0
- package/dist/webhooks/pull-request-outcome.d.ts +6 -1
- package/migrations/0001_issue_outcomes.sql +14 -0
- package/migrations/0002_pull_request_commit_composition.sql +1 -0
- package/migrations/0003_pull_request_conversations.sql +1 -0
- package/migrations/meta/0001_snapshot.json +256 -0
- package/migrations/meta/0002_snapshot.json +262 -0
- package/migrations/meta/0003_snapshot.json +269 -0
- package/migrations/meta/_journal.json +21 -0
- package/package.json +2 -2
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "fb7f4132-d92f-4127-be54-23f93c79034b",
|
|
3
|
+
"prevId": "f26a9f2b-90af-4608-98d1-be2df70c42e2",
|
|
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
|
+
"opened_at": {
|
|
42
|
+
"name": "opened_at",
|
|
43
|
+
"type": "timestamp with time zone",
|
|
44
|
+
"primaryKey": false,
|
|
45
|
+
"notNull": true
|
|
46
|
+
},
|
|
47
|
+
"closed_at": {
|
|
48
|
+
"name": "closed_at",
|
|
49
|
+
"type": "timestamp with time zone",
|
|
50
|
+
"primaryKey": false,
|
|
51
|
+
"notNull": false
|
|
52
|
+
},
|
|
53
|
+
"updated_at": {
|
|
54
|
+
"name": "updated_at",
|
|
55
|
+
"type": "timestamp with time zone",
|
|
56
|
+
"primaryKey": false,
|
|
57
|
+
"notNull": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"indexes": {
|
|
61
|
+
"junior_github_issues_opened_at_idx": {
|
|
62
|
+
"name": "junior_github_issues_opened_at_idx",
|
|
63
|
+
"columns": [
|
|
64
|
+
{
|
|
65
|
+
"expression": "opened_at",
|
|
66
|
+
"isExpression": false,
|
|
67
|
+
"asc": true,
|
|
68
|
+
"nulls": "last"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"isUnique": false,
|
|
72
|
+
"concurrently": false,
|
|
73
|
+
"method": "btree",
|
|
74
|
+
"with": {}
|
|
75
|
+
},
|
|
76
|
+
"junior_github_issues_closed_at_idx": {
|
|
77
|
+
"name": "junior_github_issues_closed_at_idx",
|
|
78
|
+
"columns": [
|
|
79
|
+
{
|
|
80
|
+
"expression": "closed_at",
|
|
81
|
+
"isExpression": false,
|
|
82
|
+
"asc": true,
|
|
83
|
+
"nulls": "last"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"isUnique": false,
|
|
87
|
+
"concurrently": false,
|
|
88
|
+
"method": "btree",
|
|
89
|
+
"with": {}
|
|
90
|
+
},
|
|
91
|
+
"junior_github_issues_open_idx": {
|
|
92
|
+
"name": "junior_github_issues_open_idx",
|
|
93
|
+
"columns": [
|
|
94
|
+
{
|
|
95
|
+
"expression": "issue_id",
|
|
96
|
+
"isExpression": false,
|
|
97
|
+
"asc": true,
|
|
98
|
+
"nulls": "last"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"isUnique": false,
|
|
102
|
+
"where": "\"junior_github_issues\".\"state\" = 'open'",
|
|
103
|
+
"concurrently": false,
|
|
104
|
+
"method": "btree",
|
|
105
|
+
"with": {}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"foreignKeys": {},
|
|
109
|
+
"compositePrimaryKeys": {},
|
|
110
|
+
"uniqueConstraints": {},
|
|
111
|
+
"policies": {},
|
|
112
|
+
"checkConstraints": {},
|
|
113
|
+
"isRLSEnabled": false
|
|
114
|
+
},
|
|
115
|
+
"public.junior_github_pull_requests": {
|
|
116
|
+
"name": "junior_github_pull_requests",
|
|
117
|
+
"schema": "",
|
|
118
|
+
"columns": {
|
|
119
|
+
"pull_request_id": {
|
|
120
|
+
"name": "pull_request_id",
|
|
121
|
+
"type": "text",
|
|
122
|
+
"primaryKey": true,
|
|
123
|
+
"notNull": true
|
|
124
|
+
},
|
|
125
|
+
"repository_id": {
|
|
126
|
+
"name": "repository_id",
|
|
127
|
+
"type": "text",
|
|
128
|
+
"primaryKey": false,
|
|
129
|
+
"notNull": true
|
|
130
|
+
},
|
|
131
|
+
"repository_full_name": {
|
|
132
|
+
"name": "repository_full_name",
|
|
133
|
+
"type": "text",
|
|
134
|
+
"primaryKey": false,
|
|
135
|
+
"notNull": true
|
|
136
|
+
},
|
|
137
|
+
"number": {
|
|
138
|
+
"name": "number",
|
|
139
|
+
"type": "integer",
|
|
140
|
+
"primaryKey": false,
|
|
141
|
+
"notNull": true
|
|
142
|
+
},
|
|
143
|
+
"state": {
|
|
144
|
+
"name": "state",
|
|
145
|
+
"type": "text",
|
|
146
|
+
"primaryKey": false,
|
|
147
|
+
"notNull": true
|
|
148
|
+
},
|
|
149
|
+
"commit_composition": {
|
|
150
|
+
"name": "commit_composition",
|
|
151
|
+
"type": "text",
|
|
152
|
+
"primaryKey": false,
|
|
153
|
+
"notNull": false
|
|
154
|
+
},
|
|
155
|
+
"conversation_ids": {
|
|
156
|
+
"name": "conversation_ids",
|
|
157
|
+
"type": "text[]",
|
|
158
|
+
"primaryKey": false,
|
|
159
|
+
"notNull": true,
|
|
160
|
+
"default": "ARRAY[]::text[]"
|
|
161
|
+
},
|
|
162
|
+
"opened_at": {
|
|
163
|
+
"name": "opened_at",
|
|
164
|
+
"type": "timestamp with time zone",
|
|
165
|
+
"primaryKey": false,
|
|
166
|
+
"notNull": true
|
|
167
|
+
},
|
|
168
|
+
"merged_at": {
|
|
169
|
+
"name": "merged_at",
|
|
170
|
+
"type": "timestamp with time zone",
|
|
171
|
+
"primaryKey": false,
|
|
172
|
+
"notNull": false
|
|
173
|
+
},
|
|
174
|
+
"closed_at": {
|
|
175
|
+
"name": "closed_at",
|
|
176
|
+
"type": "timestamp with time zone",
|
|
177
|
+
"primaryKey": false,
|
|
178
|
+
"notNull": false
|
|
179
|
+
},
|
|
180
|
+
"updated_at": {
|
|
181
|
+
"name": "updated_at",
|
|
182
|
+
"type": "timestamp with time zone",
|
|
183
|
+
"primaryKey": false,
|
|
184
|
+
"notNull": true
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"indexes": {
|
|
188
|
+
"junior_github_pull_requests_opened_at_idx": {
|
|
189
|
+
"name": "junior_github_pull_requests_opened_at_idx",
|
|
190
|
+
"columns": [
|
|
191
|
+
{
|
|
192
|
+
"expression": "opened_at",
|
|
193
|
+
"isExpression": false,
|
|
194
|
+
"asc": true,
|
|
195
|
+
"nulls": "last"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"isUnique": false,
|
|
199
|
+
"concurrently": false,
|
|
200
|
+
"method": "btree",
|
|
201
|
+
"with": {}
|
|
202
|
+
},
|
|
203
|
+
"junior_github_pull_requests_merged_at_idx": {
|
|
204
|
+
"name": "junior_github_pull_requests_merged_at_idx",
|
|
205
|
+
"columns": [
|
|
206
|
+
{
|
|
207
|
+
"expression": "merged_at",
|
|
208
|
+
"isExpression": false,
|
|
209
|
+
"asc": true,
|
|
210
|
+
"nulls": "last"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"isUnique": false,
|
|
214
|
+
"concurrently": false,
|
|
215
|
+
"method": "btree",
|
|
216
|
+
"with": {}
|
|
217
|
+
},
|
|
218
|
+
"junior_github_pull_requests_closed_at_idx": {
|
|
219
|
+
"name": "junior_github_pull_requests_closed_at_idx",
|
|
220
|
+
"columns": [
|
|
221
|
+
{
|
|
222
|
+
"expression": "closed_at",
|
|
223
|
+
"isExpression": false,
|
|
224
|
+
"asc": true,
|
|
225
|
+
"nulls": "last"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"isUnique": false,
|
|
229
|
+
"concurrently": false,
|
|
230
|
+
"method": "btree",
|
|
231
|
+
"with": {}
|
|
232
|
+
},
|
|
233
|
+
"junior_github_pull_requests_open_idx": {
|
|
234
|
+
"name": "junior_github_pull_requests_open_idx",
|
|
235
|
+
"columns": [
|
|
236
|
+
{
|
|
237
|
+
"expression": "pull_request_id",
|
|
238
|
+
"isExpression": false,
|
|
239
|
+
"asc": true,
|
|
240
|
+
"nulls": "last"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"isUnique": false,
|
|
244
|
+
"where": "\"junior_github_pull_requests\".\"state\" = 'open'",
|
|
245
|
+
"concurrently": false,
|
|
246
|
+
"method": "btree",
|
|
247
|
+
"with": {}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"foreignKeys": {},
|
|
251
|
+
"compositePrimaryKeys": {},
|
|
252
|
+
"uniqueConstraints": {},
|
|
253
|
+
"policies": {},
|
|
254
|
+
"checkConstraints": {},
|
|
255
|
+
"isRLSEnabled": false
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"enums": {},
|
|
259
|
+
"schemas": {},
|
|
260
|
+
"sequences": {},
|
|
261
|
+
"roles": {},
|
|
262
|
+
"policies": {},
|
|
263
|
+
"views": {},
|
|
264
|
+
"_meta": {
|
|
265
|
+
"columns": {},
|
|
266
|
+
"schemas": {},
|
|
267
|
+
"tables": {}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
@@ -8,6 +8,27 @@
|
|
|
8
8
|
"when": 1784743423488,
|
|
9
9
|
"tag": "0000_pull_request_outcomes",
|
|
10
10
|
"breakpoints": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"idx": 1,
|
|
14
|
+
"version": "7",
|
|
15
|
+
"when": 1784760512145,
|
|
16
|
+
"tag": "0001_issue_outcomes",
|
|
17
|
+
"breakpoints": true
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"idx": 2,
|
|
21
|
+
"version": "7",
|
|
22
|
+
"when": 1784761404746,
|
|
23
|
+
"tag": "0002_pull_request_commit_composition",
|
|
24
|
+
"breakpoints": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"idx": 3,
|
|
28
|
+
"version": "7",
|
|
29
|
+
"when": 1784762053015,
|
|
30
|
+
"tag": "0003_pull_request_conversations",
|
|
31
|
+
"breakpoints": true
|
|
11
32
|
}
|
|
12
33
|
]
|
|
13
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.108.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.108.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^25.9.1",
|