@sentry/junior-github 0.268.0 → 0.270.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,427 @@
1
+ {
2
+ "id": "3156d5c8-917d-416b-a19b-f58e7ee76acc",
3
+ "prevId": "6b12b332-4224-4e69-9ab7-51df6a4dd91c",
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": ["pull_request_id"],
158
+ "columnsTo": ["pull_request_id"],
159
+ "onDelete": "cascade",
160
+ "onUpdate": "no action"
161
+ }
162
+ },
163
+ "compositePrimaryKeys": {
164
+ "junior_github_pull_request_issues_pull_request_id_issue_repository_full_name_issue_number_pk": {
165
+ "name": "junior_github_pull_request_issues_pull_request_id_issue_repository_full_name_issue_number_pk",
166
+ "columns": [
167
+ "pull_request_id",
168
+ "issue_repository_full_name",
169
+ "issue_number"
170
+ ]
171
+ }
172
+ },
173
+ "uniqueConstraints": {},
174
+ "policies": {},
175
+ "checkConstraints": {},
176
+ "isRLSEnabled": false
177
+ },
178
+ "public.junior_github_pull_request_requesters": {
179
+ "name": "junior_github_pull_request_requesters",
180
+ "schema": "",
181
+ "columns": {
182
+ "repository_full_name": {
183
+ "name": "repository_full_name",
184
+ "type": "text",
185
+ "primaryKey": false,
186
+ "notNull": true
187
+ },
188
+ "number": {
189
+ "name": "number",
190
+ "type": "integer",
191
+ "primaryKey": false,
192
+ "notNull": true
193
+ },
194
+ "identity_id": {
195
+ "name": "identity_id",
196
+ "type": "text",
197
+ "primaryKey": false,
198
+ "notNull": true
199
+ },
200
+ "conversation_id": {
201
+ "name": "conversation_id",
202
+ "type": "text",
203
+ "primaryKey": false,
204
+ "notNull": false
205
+ },
206
+ "created_at": {
207
+ "name": "created_at",
208
+ "type": "timestamp with time zone",
209
+ "primaryKey": false,
210
+ "notNull": true
211
+ },
212
+ "updated_at": {
213
+ "name": "updated_at",
214
+ "type": "timestamp with time zone",
215
+ "primaryKey": false,
216
+ "notNull": true
217
+ }
218
+ },
219
+ "indexes": {},
220
+ "foreignKeys": {},
221
+ "compositePrimaryKeys": {
222
+ "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk": {
223
+ "name": "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk",
224
+ "columns": ["repository_full_name", "number", "identity_id"]
225
+ }
226
+ },
227
+ "uniqueConstraints": {},
228
+ "policies": {},
229
+ "checkConstraints": {},
230
+ "isRLSEnabled": false
231
+ },
232
+ "public.junior_github_pull_requests": {
233
+ "name": "junior_github_pull_requests",
234
+ "schema": "",
235
+ "columns": {
236
+ "pull_request_id": {
237
+ "name": "pull_request_id",
238
+ "type": "text",
239
+ "primaryKey": true,
240
+ "notNull": true
241
+ },
242
+ "repository_id": {
243
+ "name": "repository_id",
244
+ "type": "text",
245
+ "primaryKey": false,
246
+ "notNull": true
247
+ },
248
+ "repository_full_name": {
249
+ "name": "repository_full_name",
250
+ "type": "text",
251
+ "primaryKey": false,
252
+ "notNull": true
253
+ },
254
+ "number": {
255
+ "name": "number",
256
+ "type": "integer",
257
+ "primaryKey": false,
258
+ "notNull": true
259
+ },
260
+ "state": {
261
+ "name": "state",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": true
265
+ },
266
+ "commit_composition": {
267
+ "name": "commit_composition",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": false
271
+ },
272
+ "conversation_ids": {
273
+ "name": "conversation_ids",
274
+ "type": "text[]",
275
+ "primaryKey": false,
276
+ "notNull": true,
277
+ "default": "ARRAY[]::text[]"
278
+ },
279
+ "opened_at": {
280
+ "name": "opened_at",
281
+ "type": "timestamp with time zone",
282
+ "primaryKey": false,
283
+ "notNull": true
284
+ },
285
+ "merged_at": {
286
+ "name": "merged_at",
287
+ "type": "timestamp with time zone",
288
+ "primaryKey": false,
289
+ "notNull": false
290
+ },
291
+ "closed_at": {
292
+ "name": "closed_at",
293
+ "type": "timestamp with time zone",
294
+ "primaryKey": false,
295
+ "notNull": false
296
+ },
297
+ "updated_at": {
298
+ "name": "updated_at",
299
+ "type": "timestamp with time zone",
300
+ "primaryKey": false,
301
+ "notNull": true
302
+ },
303
+ "ready_to_merge_at": {
304
+ "name": "ready_to_merge_at",
305
+ "type": "timestamp with time zone",
306
+ "primaryKey": false,
307
+ "notNull": false
308
+ },
309
+ "ready_sync_requests": {
310
+ "name": "ready_sync_requests",
311
+ "type": "integer",
312
+ "primaryKey": false,
313
+ "notNull": true,
314
+ "default": 0
315
+ },
316
+ "ready_sync_id": {
317
+ "name": "ready_sync_id",
318
+ "type": "integer",
319
+ "primaryKey": false,
320
+ "notNull": false
321
+ },
322
+ "ready_sync_at": {
323
+ "name": "ready_sync_at",
324
+ "type": "timestamp with time zone",
325
+ "primaryKey": false,
326
+ "notNull": false
327
+ }
328
+ },
329
+ "indexes": {
330
+ "junior_github_pull_requests_opened_at_idx": {
331
+ "name": "junior_github_pull_requests_opened_at_idx",
332
+ "columns": [
333
+ {
334
+ "expression": "opened_at",
335
+ "isExpression": false,
336
+ "asc": true,
337
+ "nulls": "last"
338
+ }
339
+ ],
340
+ "isUnique": false,
341
+ "concurrently": false,
342
+ "method": "btree",
343
+ "with": {}
344
+ },
345
+ "junior_github_pull_requests_merged_at_idx": {
346
+ "name": "junior_github_pull_requests_merged_at_idx",
347
+ "columns": [
348
+ {
349
+ "expression": "merged_at",
350
+ "isExpression": false,
351
+ "asc": true,
352
+ "nulls": "last"
353
+ }
354
+ ],
355
+ "isUnique": false,
356
+ "concurrently": false,
357
+ "method": "btree",
358
+ "with": {}
359
+ },
360
+ "junior_github_pull_requests_closed_at_idx": {
361
+ "name": "junior_github_pull_requests_closed_at_idx",
362
+ "columns": [
363
+ {
364
+ "expression": "closed_at",
365
+ "isExpression": false,
366
+ "asc": true,
367
+ "nulls": "last"
368
+ }
369
+ ],
370
+ "isUnique": false,
371
+ "concurrently": false,
372
+ "method": "btree",
373
+ "with": {}
374
+ },
375
+ "junior_github_pull_requests_open_idx": {
376
+ "name": "junior_github_pull_requests_open_idx",
377
+ "columns": [
378
+ {
379
+ "expression": "pull_request_id",
380
+ "isExpression": false,
381
+ "asc": true,
382
+ "nulls": "last"
383
+ }
384
+ ],
385
+ "isUnique": false,
386
+ "where": "\"junior_github_pull_requests\".\"state\" = 'open'",
387
+ "concurrently": false,
388
+ "method": "btree",
389
+ "with": {}
390
+ },
391
+ "junior_github_pull_requests_unmerged_conversations_idx": {
392
+ "name": "junior_github_pull_requests_unmerged_conversations_idx",
393
+ "columns": [
394
+ {
395
+ "expression": "conversation_ids",
396
+ "isExpression": false,
397
+ "asc": true,
398
+ "nulls": "last"
399
+ }
400
+ ],
401
+ "isUnique": false,
402
+ "where": "\"junior_github_pull_requests\".\"state\" <> 'merged'",
403
+ "concurrently": false,
404
+ "method": "gin",
405
+ "with": {}
406
+ }
407
+ },
408
+ "foreignKeys": {},
409
+ "compositePrimaryKeys": {},
410
+ "uniqueConstraints": {},
411
+ "policies": {},
412
+ "checkConstraints": {},
413
+ "isRLSEnabled": false
414
+ }
415
+ },
416
+ "enums": {},
417
+ "schemas": {},
418
+ "sequences": {},
419
+ "roles": {},
420
+ "policies": {},
421
+ "views": {},
422
+ "_meta": {
423
+ "columns": {},
424
+ "schemas": {},
425
+ "tables": {}
426
+ }
427
+ }
@@ -71,6 +71,13 @@
71
71
  "when": 1793225353668,
72
72
  "tag": "0009_nostalgic_thing",
73
73
  "breakpoints": true
74
+ },
75
+ {
76
+ "idx": 10,
77
+ "version": "7",
78
+ "when": 1793563055612,
79
+ "tag": "0010_sleepy_slayback",
80
+ "breakpoints": true
74
81
  }
75
82
  ]
76
- }
83
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-github",
3
- "version": "0.268.0",
3
+ "version": "0.270.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.268.0"
35
+ "@sentry/junior-plugin-api": "0.270.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@oxlint/plugins": "1.79.0",
@@ -37,6 +37,6 @@ Use `git` and `gh` for repository work.
37
37
  - Stop for an unclear target, missing access, destructive work, or a GitHub permission failure.
38
38
  - Code changes always end in a pushed branch and a PR. Do not ask whether to open one. Skip it only when the user opts out or asks for investigation only.
39
39
  - Open the PR ready for review when the work is complete and the checks pass. Open a draft when work, checks, or decisions remain. A scope or follow-up question is not a reason to stop: open the PR, and name the question in the PR body and the report.
40
- - Report repo, branch, PR, checks, and skipped checks.
40
+ - Link the PR. Mention checks only when they failed or were skipped.
41
41
 
42
42
  Do not install or repair the GitHub plugin from this skill.
@@ -11,7 +11,7 @@ Guide evidence-first GitHub repository work from inspection through a reviewable
11
11
  - Treat shallow clones as inspection checkouts; deepen before history work; never force-push around missing ancestry.
12
12
  - Install dependencies with the lockfile frozen mode before verification when needed.
13
13
  - Finish every code change with a pushed PR, without asking, unless the user opts out or asked for investigation only. Open it ready when work and checks are done; open a draft when work, checks, or decisions remain. An open scope question goes in the PR body, not in a stop.
14
- - After each push to a branch with an open PR, check mergeability. Resolve conflicts without asking, by merging the PR base branch (usually the default branch). Never rebase for this. GitHub sends no event for a new conflict, and conflicted PRs get no new checks.
14
+ - After each push to a branch with an open PR, check mergeability. Resolve conflicts without asking, by merging the PR base branch (usually the default branch). Never rebase for this. GitHub sends no event for a new conflict, and conflicted PRs get no new checks. The plugin publishes `pull_request.merge_conflict` for a watched PR only when another webhook event arrives for it, so the post-push check stays.
15
15
  - Write conventional PR titles and short plain-English bodies; keep check results out of the PR body.
16
16
  - Report exact validation and permission failures.
17
17
 
@@ -34,19 +34,18 @@ Open this when making repository edits, not for read-only inspection.
34
34
  1. Reuse the current non-default branch or create a focused branch.
35
35
  2. Commit with repo conventions, else `<type>(<scope>): <Subject>` imperative present, no agent branding.
36
36
  3. Push with `git push -u origin BRANCH`.
37
- If the branch has an open PR, check that it can merge. Do this after every push, including fixes for review feedback or failed checks. A conflicted PR gets no new checks, so no event shows it.
37
+ If the branch has an open PR, check that it can merge. Do this after every push, including fixes for review feedback or failed checks. A conflicted PR gets no new checks. A watched PR gets `pull_request.merge_conflict` only with its next event, so do not wait for it.
38
38
  - Run `gh pr view NUMBER --repo owner/repo --json mergeable,baseRefName`.
39
39
  - `UNKNOWN`: GitHub is still calculating it. Wait about 5 seconds and check again, up to 3 times. If it stays `UNKNOWN`, report that and continue.
40
40
  - `CONFLICTING`: resolve it now. Do not ask first. GitHub checks mergeability against the PR base (`baseRefName`), which is usually the default branch. Fetch the base and merge `origin/BASE` into the PR branch. Do not rebase. Resolve each conflict so that both the PR change and the base branch change stay intact. Run the checks again, push, and check mergeability again.
41
- - In the report, name the files that had conflicts and say how you resolved them.
42
41
  4. Resolve the actual default branch.
43
42
  5. Update an existing PR for the branch with `github_updatePullRequest`, or create with `github_createPullRequest` (`draft: true` only when work, checks, or decisions remain; otherwise ready for review).
44
43
  6. PR title matches the current dominant change, same conventional form as commits.
45
- 7. PR body: short, plain English, what changed and why. Only context the diff cannot show. No empty sections, file lists, commit logs, or Checks/Verification/Test plan blocks. Put local check results in the user report only.
44
+ 7. PR body: short, plain English, what changed and why. Only context the diff cannot show. No empty sections, file lists, commit logs, or Checks/Verification/Test plan blocks.
46
45
  8. After material follow-up commits, refresh title and body against the current diff.
47
46
  9. Never put customer data, PII, secrets, or sensitive thread context in public PR text.
48
47
  10. If PR create/update is blocked, report the exact failure and leave the committed branch intact.
49
48
 
50
49
  ## Follow
51
50
 
52
- When PR creation returns a subscribable hint, subscribe to suggested review/CI events. Report only actionable feedback fixed, build failures fixed, green/ready, or merge.
51
+ When PR creation returns a subscribable hint, subscribe to suggested review/CI events. Fix routine review feedback and failed checks without a thread update. Reply only when the requester needs to act, or when the PR merges or closes.