@sentry/junior-github 0.263.0 → 0.265.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/plugin.d.ts CHANGED
@@ -1,8 +1,3 @@
1
- /**
2
- * GitHub plugin runtime boundary.
3
- *
4
- * This module composes GitHub hooks, events, and credentials.
5
- */
6
1
  import { type PluginRegistration } from "@sentry/junior-plugin-api";
7
2
  import { type GitHubAppPermissions } from "./permissions.js";
8
3
  import { type GitHubPullRequestEventOptions } from "./events/pull-request.js";
@@ -0,0 +1,34 @@
1
+ import type { GitHubDb } from "../db/database.js";
2
+ /**
3
+ * Save the person who asked Junior to open a pull request, after GitHub
4
+ * opens it.
5
+ *
6
+ * `createdAt` is when the create call started. The row uses it, so the opener
7
+ * stays the first row for the number. Any row for the number from before that
8
+ * time belongs to an earlier repository with the same name, and is removed. A
9
+ * retry of the same create call can call this again.
10
+ */
11
+ export declare function recordGitHubPullRequestOpener(db: GitHubDb, input: {
12
+ createdAt: Date;
13
+ identityId: string;
14
+ number: number;
15
+ repositoryFullName: string;
16
+ }): Promise<void>;
17
+ /**
18
+ * Add a person who asked Junior to update a pull request. A person who is
19
+ * already a requester keeps their row, so the opener does not change.
20
+ */
21
+ export declare function recordGitHubPullRequestRequester(db: GitHubDb, input: {
22
+ identityId: string;
23
+ number: number;
24
+ repositoryFullName: string;
25
+ }): Promise<void>;
26
+ /**
27
+ * Load the Junior identity id of the first requester of each pull request.
28
+ * This is the person who asked Junior to open it, or, when the create had no
29
+ * identity, the first person who asked Junior to update it.
30
+ */
31
+ export declare function listGitHubPullRequestOpeners(db: GitHubDb, input: {
32
+ numbers: number[];
33
+ repositoryFullName: string;
34
+ }): Promise<Map<number, string>>;
package/dist/testing.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeGitHubEvents
3
- } from "./chunk-VEN7LFRI.js";
3
+ } from "./chunk-4RYMEHIK.js";
4
4
  export {
5
5
  normalizeGitHubEvents
6
6
  };
@@ -8,23 +8,34 @@ export declare const GITHUB_REQUEST_ATTRIBUTION_END = "<!-- junior-request-attri
8
8
  * GitHub notifications for the issue or pull request.
9
9
  */
10
10
  export declare function linkedGitHubLogin(user: User | undefined): string | undefined;
11
+ /** The stored Junior identity and user of the Actor that makes a GitHub write. */
12
+ export interface GitHubRequester {
13
+ identity?: Identity;
14
+ user?: User;
15
+ }
11
16
  /**
12
- * Append or replace runtime-owned requester attribution in a GitHub body.
17
+ * Look up the current Actor once for one GitHub write. The attribution block,
18
+ * the saved pull request requester, and the assignee all use this one result.
13
19
  *
14
- * Identity lookup is best-effort presentation data. A storage failure falls
15
- * back to the already-hydrated actor profile instead of blocking the write.
20
+ * System actors have no requester. The lookup is best effort: a failure is
21
+ * logged and gives no requester, so it never blocks the write.
22
+ */
23
+ export declare function resolveGitHubRequester(ctx: {
24
+ actor?: Actor;
25
+ log: PluginLogger;
26
+ users: {
27
+ resolveActor(): Promise<GitHubRequester | undefined>;
28
+ };
29
+ }): Promise<GitHubRequester | undefined>;
30
+ /**
31
+ * Append or replace runtime-owned requester attribution in a GitHub body.
32
+ * With no stored requester, the label falls back to the already-hydrated
33
+ * actor profile.
16
34
  */
17
35
  export declare function appendGitHubRequesterAttribution(body: string, ctx: {
18
36
  actor?: Actor;
19
37
  automationLink?: {
20
38
  url: string;
21
39
  };
22
- log: PluginLogger;
23
40
  source?: Source;
24
- users: {
25
- resolveActor(): Promise<{
26
- identity?: Identity;
27
- user?: User;
28
- } | undefined>;
29
- };
30
- }): Promise<string>;
41
+ }, requester: GitHubRequester | undefined): string;
@@ -6,6 +6,7 @@ export declare function createGitHubUpdatePullRequestTool(ctx: {
6
6
  url: string;
7
7
  };
8
8
  conversationId?: string;
9
+ db: unknown;
9
10
  egress: PluginEgress;
10
11
  log: PluginLogger;
11
12
  events: {
@@ -10,8 +10,8 @@ export type GitHubFailingCheck = {
10
10
  };
11
11
  /** Pull request values filled in when a match filter needs them. */
12
12
  export type GitHubCheckSuitePullRequestFacts = {
13
- authorEmail?: string;
14
- authorUsername?: string;
13
+ openerEmail?: string;
14
+ openerUsername?: string;
15
15
  isDraft?: boolean;
16
16
  };
17
17
  /** Optional values for one check suite event. */
@@ -29,8 +29,8 @@ export declare function buildCheckSuiteUrl(args: {
29
29
  /** Build the trusted data and summary for one check-suite event. */
30
30
  export declare function buildCheckSuiteEvent(args: {
31
31
  appName?: string;
32
- authorEmail?: string;
33
- authorUsername?: string;
32
+ openerEmail?: string;
33
+ openerUsername?: string;
34
34
  checkSuiteId?: number;
35
35
  deliveryId: string;
36
36
  eventType: "pull_request.checks.failed" | "pull_request.checks.recovered";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Event key and target helpers shared by the GitHub webhook normalizers.
3
+ */
4
+ import type { EventInput } from "@sentry/junior-plugin-api";
5
+ /** Build the event key for one event type from one webhook delivery. */
6
+ export declare function gitHubEventKey(deliveryId: string, eventType: string): string;
7
+ /**
8
+ * Address a pull request event through both the pull request and its
9
+ * repository. Only the pull request copy keeps `terminal`, so a terminal
10
+ * event never completes a repository Watch.
11
+ */
12
+ export declare function pullRequestTargets(event: EventInput, repo: string): EventInput[];
@@ -1,8 +1,8 @@
1
- import type { CodeChangePublisher, PluginConversationAnnotations, PluginLogger, PluginRoute, EventPerson, EventPublisher } from "@sentry/junior-plugin-api";
1
+ import type { CodeChangePublisher, PluginConversationAnnotations, PluginLogger, PluginRoute, EventPublisher } from "@sentry/junior-plugin-api";
2
2
  import type { GitHubDb } from "../db/database.js";
3
3
  import type { GitHubPullRequestCommitComposition } from "../db/schema.js";
4
- import { type GitHubAuthorRoleTarget } from "./pull-request-author-role.js";
5
- import { type GitHubPullRequestPeopleTarget } from "./pull-request-people.js";
4
+ import { type GitHubRoleTarget } from "./pull-request-match-data.js";
5
+ import { type GitHubCommitPageLoader, type GitHubPullRequestTarget } from "./pull-request-people.js";
6
6
  interface FeedbackTarget {
7
7
  commentId: number;
8
8
  commentKind: "conversation" | "review";
@@ -21,10 +21,15 @@ export declare function createGitHubWebhookRoute(args: {
21
21
  db: GitHubDb;
22
22
  installationId(): string | undefined;
23
23
  installationIdEnv: string;
24
- /** Load a pull request author's repository role for `authorRole` filters. */
25
- loadAuthorRole?(target: GitHubAuthorRoleTarget): Promise<string>;
26
- /** Load the people involved in a pull request for approvals and merges. */
27
- loadPullRequestPeople?(target: GitHubPullRequestPeopleTarget): Promise<EventPerson[]>;
24
+ /**
25
+ * Read a pull request's commits for the `authors` field and the people
26
+ * involved.
27
+ */
28
+ loadPullRequestCommitPages?(target: GitHubPullRequestTarget): Promise<GitHubCommitPageLoader>;
29
+ /** Load a repository role for `openerRole`. */
30
+ loadRepositoryRole?(target: GitHubRoleTarget): Promise<string>;
31
+ /** Linked GitHub login of the user of one Junior identity, if any. */
32
+ loadGitHubLogin?(identityId: string): Promise<string | undefined>;
28
33
  log?: Pick<PluginLogger, "error">;
29
34
  markFeedbackReviewing(input: FeedbackTarget): Promise<void>;
30
35
  privateKeyEnv: string;
@@ -0,0 +1,31 @@
1
+ import type { EventInput, EventPublisher, PluginLogger } from "@sentry/junior-plugin-api";
2
+ import type { GitHubDb } from "../db/database.js";
3
+ import type { GitHubPullRequestTarget } from "./pull-request-people.js";
4
+ /** The login whose repository role a lookup reads. */
5
+ export interface GitHubRoleTarget {
6
+ login: string;
7
+ repositoryFullName: string;
8
+ }
9
+ /**
10
+ * Add who opened and who wrote each pull request to its events.
11
+ * `openerUsername` is the GitHub user who opened it, or on Junior's pull
12
+ * requests the person who asked Junior to open it. `openerRole` is that
13
+ * person's repository role. `authors` lists the commit authors and
14
+ * `Co-authored-by` people. These values need database or GitHub calls. They
15
+ * load first when a Watch or event automation filters on them, and the rest
16
+ * load only when an event matches, so the agent sees them all.
17
+ */
18
+ export declare function withGitHubPullRequestMatchData(args: {
19
+ body: unknown;
20
+ botEmail: string | undefined;
21
+ db: GitHubDb;
22
+ deliveryId: string;
23
+ events: EventInput[];
24
+ hasMatch: EventPublisher["hasMatch"];
25
+ loadAuthors?(target: GitHubPullRequestTarget): Promise<string[]>;
26
+ /** Linked GitHub login of the user of one Junior identity, if any. */
27
+ loadGitHubLogin?(identityId: string): Promise<string | undefined>;
28
+ loadRole?(target: GitHubRoleTarget): Promise<string>;
29
+ log?: Pick<PluginLogger, "error">;
30
+ neededMatchKeys: EventPublisher["neededMatchKeys"];
31
+ }): Promise<EventInput[]>;
@@ -1,11 +1,21 @@
1
1
  import type { EventInput, EventPerson, EventPublisher, PluginLogger } from "@sentry/junior-plugin-api";
2
- /** The pull request that a people lookup reads. */
3
- export interface GitHubPullRequestPeopleTarget {
4
- /** Pull request author and assignees from the webhook. */
5
- logins: string[];
2
+ /** One pull request in a repository. */
3
+ export interface GitHubPullRequestTarget {
6
4
  number: number;
7
5
  repositoryFullName: string;
8
6
  }
7
+ /** The pull request that a people lookup reads. */
8
+ export interface GitHubPullRequestPeopleTarget extends GitHubPullRequestTarget {
9
+ /** Pull request opener and assignees from the webhook. */
10
+ logins: string[];
11
+ }
12
+ /** Loads one page of a pull request's commits from GitHub. */
13
+ export type GitHubCommitPageLoader = (page: number, perPage: number) => Promise<unknown>;
14
+ /**
15
+ * Share commit page loads within one webhook delivery, so the `authors` field
16
+ * and the people involved read each page once.
17
+ */
18
+ export declare function shareCommitPages(load: (target: GitHubPullRequestTarget) => Promise<GitHubCommitPageLoader>): (target: GitHubPullRequestTarget) => GitHubCommitPageLoader;
9
19
  /**
10
20
  * Collect the people involved in a pull request: the webhook logins, commit
11
21
  * authors, and `Co-authored-by` trailers. Junior adds a trailer for each
@@ -14,8 +24,18 @@ export interface GitHubPullRequestPeopleTarget {
14
24
  */
15
25
  export declare function loadGitHubPullRequestPeople(args: {
16
26
  logins: readonly string[];
17
- loadPage(page: number, perPage: number): Promise<unknown>;
27
+ loadPage: GitHubCommitPageLoader;
18
28
  }): Promise<EventPerson[]>;
29
+ /**
30
+ * Collect the GitHub logins of a pull request's commit authors and
31
+ * `Co-authored-by` people, for the `authors` event field. Bots stay in the
32
+ * list, so Junior's own commits name `sentry-junior[bot]` and the people it
33
+ * credits. A co-author without a noreply email has no known login and is
34
+ * left out.
35
+ */
36
+ export declare function loadGitHubPullRequestAuthors(args: {
37
+ loadPage: GitHubCommitPageLoader;
38
+ }): Promise<string[]>;
19
39
  /**
20
40
  * Add the people involved to approval and merge events. It loads them only
21
41
  * when a Watch or event automation matches, so other deliveries make no extra
@@ -0,0 +1,8 @@
1
+ CREATE TABLE "junior_github_pull_request_requesters" (
2
+ "repository_full_name" text NOT NULL,
3
+ "number" integer NOT NULL,
4
+ "identity_id" text NOT NULL,
5
+ "created_at" timestamp with time zone NOT NULL,
6
+ "updated_at" timestamp with time zone NOT NULL,
7
+ CONSTRAINT "junior_github_pull_request_requesters_repository_full_name_number_identity_id_pk" PRIMARY KEY("repository_full_name","number","identity_id")
8
+ );
@@ -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
+ }