@sentry/junior-github 0.300.0 → 0.302.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/account-links.d.ts +8 -0
- package/dist/{chunk-YUF5P5I7.js → chunk-6SOJ5TN6.js} +142 -31
- package/dist/clone-command.d.ts +2 -0
- package/dist/configured-repository.d.ts +10 -0
- package/dist/db/schema.d.ts +23 -14
- package/dist/draft-readiness.d.ts +31 -0
- package/dist/events/pull-request.d.ts +1 -1
- package/dist/events/repository.d.ts +1 -1
- package/dist/graphql-documents.d.ts +13 -0
- package/dist/hooks-path-command.d.ts +5 -0
- package/dist/images.d.ts +8 -0
- package/dist/index.js +2355 -1801
- package/dist/merge-conflict-checks/heartbeat.d.ts +9 -5
- package/dist/merge-conflict-checks/policy.d.ts +74 -0
- package/dist/object-facts.d.ts +14 -3
- package/dist/pull-request-outcomes/reconcile.d.ts +2 -1
- package/dist/pull-request-outcomes/store.d.ts +15 -10
- package/dist/reply-markdown.d.ts +18 -2
- package/dist/testing.js +1 -1
- package/dist/tool-support/github-api.d.ts +7 -0
- package/dist/tool-support/github-text.d.ts +8 -0
- package/dist/tools/clone-repository.d.ts +89 -7
- package/dist/tools/comment-on-issue.d.ts +87 -3
- package/dist/tools/comment-on-pull-request.d.ts +87 -3
- package/dist/tools/create-issue.d.ts +86 -4
- package/dist/tools/create-pull-request.d.ts +88 -6
- package/dist/tools/get-deployment.d.ts +90 -8
- package/dist/tools/get-issue.d.ts +98 -16
- package/dist/tools/get-pull-request.d.ts +112 -9
- package/dist/tools/get-release.d.ts +90 -8
- package/dist/tools/get-repository.d.ts +90 -8
- package/dist/tools/get-status.d.ts +87 -5
- package/dist/tools/react-to-issue.d.ts +87 -3
- package/dist/tools/resolve-pull-request-review-thread.d.ts +87 -5
- package/dist/tools/submit-pull-request-review.d.ts +87 -3
- package/dist/tools/update-issue-comment.d.ts +87 -3
- package/dist/tools/update-issue.d.ts +106 -24
- package/dist/tools/update-pull-request-feedback.d.ts +87 -5
- package/dist/tools/update-pull-request.d.ts +109 -26
- package/dist/tools.d.ts +3 -3
- package/dist/webhooks/check-suite.d.ts +30 -3
- package/dist/webhooks/handler.d.ts +2 -0
- package/dist/webhooks/installation-requests.d.ts +8 -1
- package/dist/webhooks/merge-conflict.d.ts +7 -2
- package/dist/webhooks/pull-request-action.d.ts +37 -0
- package/migrations/0012_pull_request_next_action.sql +5 -0
- package/migrations/meta/0012_snapshot.json +434 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +7 -2
- package/skills/github-code/SKILL.md +1 -1
- package/skills/github-code/SPEC.md +2 -2
- package/skills/github-code/references/workflow.md +1 -1
- package/dist/webhooks/pull-request-ready.d.ts +0 -31
- package/dist/webhooks/pull-request-review-request.d.ts +0 -32
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { type PluginEgress } from "@sentry/junior-plugin-api";
|
|
2
2
|
/** Read one repository and expose its stable subscription identity. */
|
|
3
|
-
export declare
|
|
4
|
-
egress: PluginEgress;
|
|
5
|
-
events: {
|
|
6
|
-
canSubscribe: boolean;
|
|
7
|
-
};
|
|
8
|
-
}): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
3
|
+
export declare const gitHubGetRepositoryTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
9
4
|
repo: string;
|
|
10
5
|
}, {
|
|
11
6
|
objectAnnotations?: {
|
|
12
7
|
kind: "object";
|
|
13
8
|
key: string;
|
|
14
9
|
label: string;
|
|
15
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
10
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
16
11
|
title: string;
|
|
17
12
|
url: string | null;
|
|
18
13
|
description?: string | undefined;
|
|
@@ -48,6 +43,10 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
48
43
|
cycle?: string | undefined;
|
|
49
44
|
dueDate?: string | undefined;
|
|
50
45
|
labels?: string[] | undefined;
|
|
46
|
+
trend?: {
|
|
47
|
+
label: string;
|
|
48
|
+
points: number[];
|
|
49
|
+
} | undefined;
|
|
51
50
|
} | {
|
|
52
51
|
type: "deployment";
|
|
53
52
|
summary?: string | undefined;
|
|
@@ -70,6 +69,7 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
70
69
|
summary?: string | undefined;
|
|
71
70
|
owner?: string | undefined;
|
|
72
71
|
modifiedAt?: string | undefined;
|
|
72
|
+
thumbnailUrl?: string | undefined;
|
|
73
73
|
} | {
|
|
74
74
|
type: "message";
|
|
75
75
|
summary?: string | undefined;
|
|
@@ -81,7 +81,43 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
81
81
|
summary?: string | undefined;
|
|
82
82
|
siteName?: string | undefined;
|
|
83
83
|
author?: string | undefined;
|
|
84
|
+
media?: "image" | "video" | undefined;
|
|
84
85
|
thumbnailUrl?: string | undefined;
|
|
86
|
+
} | {
|
|
87
|
+
type: "chart";
|
|
88
|
+
summary?: string | undefined;
|
|
89
|
+
display: "area" | "bar" | "line";
|
|
90
|
+
yAxis: string;
|
|
91
|
+
range: string;
|
|
92
|
+
series: {
|
|
93
|
+
label: string;
|
|
94
|
+
points: number[];
|
|
95
|
+
}[];
|
|
96
|
+
} | {
|
|
97
|
+
type: "event";
|
|
98
|
+
summary?: string | undefined;
|
|
99
|
+
level?: string | undefined;
|
|
100
|
+
project?: string | undefined;
|
|
101
|
+
release?: string | undefined;
|
|
102
|
+
environment?: string | undefined;
|
|
103
|
+
occurredAt?: string | undefined;
|
|
104
|
+
} | {
|
|
105
|
+
type: "trace";
|
|
106
|
+
summary?: string | undefined;
|
|
107
|
+
rootOp?: string | undefined;
|
|
108
|
+
rootName?: string | undefined;
|
|
109
|
+
durationMs: number;
|
|
110
|
+
spanCount: number;
|
|
111
|
+
errorCount: number;
|
|
112
|
+
performanceIssueCount: number;
|
|
113
|
+
projects: string[];
|
|
114
|
+
spans: {
|
|
115
|
+
op?: string | undefined;
|
|
116
|
+
name: string;
|
|
117
|
+
startMs: number;
|
|
118
|
+
durationMs: number;
|
|
119
|
+
issue?: boolean | undefined;
|
|
120
|
+
}[];
|
|
85
121
|
} | {
|
|
86
122
|
type: "person";
|
|
87
123
|
summary?: string | undefined;
|
|
@@ -120,7 +156,7 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
120
156
|
kind: "object";
|
|
121
157
|
key: string;
|
|
122
158
|
label: string;
|
|
123
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
159
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
124
160
|
title: string;
|
|
125
161
|
url: string | null;
|
|
126
162
|
description?: string | undefined;
|
|
@@ -156,6 +192,10 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
156
192
|
cycle?: string | undefined;
|
|
157
193
|
dueDate?: string | undefined;
|
|
158
194
|
labels?: string[] | undefined;
|
|
195
|
+
trend?: {
|
|
196
|
+
label: string;
|
|
197
|
+
points: number[];
|
|
198
|
+
} | undefined;
|
|
159
199
|
} | {
|
|
160
200
|
type: "deployment";
|
|
161
201
|
summary?: string | undefined;
|
|
@@ -178,6 +218,7 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
178
218
|
summary?: string | undefined;
|
|
179
219
|
owner?: string | undefined;
|
|
180
220
|
modifiedAt?: string | undefined;
|
|
221
|
+
thumbnailUrl?: string | undefined;
|
|
181
222
|
} | {
|
|
182
223
|
type: "message";
|
|
183
224
|
summary?: string | undefined;
|
|
@@ -189,7 +230,43 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
189
230
|
summary?: string | undefined;
|
|
190
231
|
siteName?: string | undefined;
|
|
191
232
|
author?: string | undefined;
|
|
233
|
+
media?: "image" | "video" | undefined;
|
|
192
234
|
thumbnailUrl?: string | undefined;
|
|
235
|
+
} | {
|
|
236
|
+
type: "chart";
|
|
237
|
+
summary?: string | undefined;
|
|
238
|
+
display: "area" | "bar" | "line";
|
|
239
|
+
yAxis: string;
|
|
240
|
+
range: string;
|
|
241
|
+
series: {
|
|
242
|
+
label: string;
|
|
243
|
+
points: number[];
|
|
244
|
+
}[];
|
|
245
|
+
} | {
|
|
246
|
+
type: "event";
|
|
247
|
+
summary?: string | undefined;
|
|
248
|
+
level?: string | undefined;
|
|
249
|
+
project?: string | undefined;
|
|
250
|
+
release?: string | undefined;
|
|
251
|
+
environment?: string | undefined;
|
|
252
|
+
occurredAt?: string | undefined;
|
|
253
|
+
} | {
|
|
254
|
+
type: "trace";
|
|
255
|
+
summary?: string | undefined;
|
|
256
|
+
rootOp?: string | undefined;
|
|
257
|
+
rootName?: string | undefined;
|
|
258
|
+
durationMs: number;
|
|
259
|
+
spanCount: number;
|
|
260
|
+
errorCount: number;
|
|
261
|
+
performanceIssueCount: number;
|
|
262
|
+
projects: string[];
|
|
263
|
+
spans: {
|
|
264
|
+
op?: string | undefined;
|
|
265
|
+
name: string;
|
|
266
|
+
startMs: number;
|
|
267
|
+
durationMs: number;
|
|
268
|
+
issue?: boolean | undefined;
|
|
269
|
+
}[];
|
|
193
270
|
} | {
|
|
194
271
|
type: "person";
|
|
195
272
|
summary?: string | undefined;
|
|
@@ -223,4 +300,9 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
223
300
|
} | undefined;
|
|
224
301
|
url: string;
|
|
225
302
|
target: "getRepository";
|
|
303
|
+
}, {
|
|
304
|
+
egress: PluginEgress;
|
|
305
|
+
events: {
|
|
306
|
+
canSubscribe: boolean;
|
|
307
|
+
};
|
|
226
308
|
}>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { type PluginCache } from "@sentry/junior-plugin-api";
|
|
2
2
|
/** Read open and recent GitHub incidents to tell outages from other failures. */
|
|
3
|
-
export declare
|
|
4
|
-
cache: PluginCache;
|
|
5
|
-
}): import("@sentry/junior-plugin-api").PluginToolDefinition<Record<string, never>, {
|
|
3
|
+
export declare const gitHubGetStatusTool: import("@sentry/junior-plugin-api").PluginToolDefinition<Record<string, never>, {
|
|
6
4
|
[x: string]: unknown;
|
|
7
5
|
objectAnnotations?: {
|
|
8
6
|
kind: "object";
|
|
9
7
|
key: string;
|
|
10
8
|
label: string;
|
|
11
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
9
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
12
10
|
title: string;
|
|
13
11
|
url: string | null;
|
|
14
12
|
description?: string | undefined;
|
|
@@ -44,6 +42,10 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
44
42
|
cycle?: string | undefined;
|
|
45
43
|
dueDate?: string | undefined;
|
|
46
44
|
labels?: string[] | undefined;
|
|
45
|
+
trend?: {
|
|
46
|
+
label: string;
|
|
47
|
+
points: number[];
|
|
48
|
+
} | undefined;
|
|
47
49
|
} | {
|
|
48
50
|
type: "deployment";
|
|
49
51
|
summary?: string | undefined;
|
|
@@ -66,6 +68,7 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
66
68
|
summary?: string | undefined;
|
|
67
69
|
owner?: string | undefined;
|
|
68
70
|
modifiedAt?: string | undefined;
|
|
71
|
+
thumbnailUrl?: string | undefined;
|
|
69
72
|
} | {
|
|
70
73
|
type: "message";
|
|
71
74
|
summary?: string | undefined;
|
|
@@ -77,7 +80,43 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
77
80
|
summary?: string | undefined;
|
|
78
81
|
siteName?: string | undefined;
|
|
79
82
|
author?: string | undefined;
|
|
83
|
+
media?: "image" | "video" | undefined;
|
|
80
84
|
thumbnailUrl?: string | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
type: "chart";
|
|
87
|
+
summary?: string | undefined;
|
|
88
|
+
display: "area" | "bar" | "line";
|
|
89
|
+
yAxis: string;
|
|
90
|
+
range: string;
|
|
91
|
+
series: {
|
|
92
|
+
label: string;
|
|
93
|
+
points: number[];
|
|
94
|
+
}[];
|
|
95
|
+
} | {
|
|
96
|
+
type: "event";
|
|
97
|
+
summary?: string | undefined;
|
|
98
|
+
level?: string | undefined;
|
|
99
|
+
project?: string | undefined;
|
|
100
|
+
release?: string | undefined;
|
|
101
|
+
environment?: string | undefined;
|
|
102
|
+
occurredAt?: string | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
type: "trace";
|
|
105
|
+
summary?: string | undefined;
|
|
106
|
+
rootOp?: string | undefined;
|
|
107
|
+
rootName?: string | undefined;
|
|
108
|
+
durationMs: number;
|
|
109
|
+
spanCount: number;
|
|
110
|
+
errorCount: number;
|
|
111
|
+
performanceIssueCount: number;
|
|
112
|
+
projects: string[];
|
|
113
|
+
spans: {
|
|
114
|
+
op?: string | undefined;
|
|
115
|
+
name: string;
|
|
116
|
+
startMs: number;
|
|
117
|
+
durationMs: number;
|
|
118
|
+
issue?: boolean | undefined;
|
|
119
|
+
}[];
|
|
81
120
|
} | {
|
|
82
121
|
type: "person";
|
|
83
122
|
summary?: string | undefined;
|
|
@@ -112,7 +151,7 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
112
151
|
kind: "object";
|
|
113
152
|
key: string;
|
|
114
153
|
label: string;
|
|
115
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
154
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
116
155
|
title: string;
|
|
117
156
|
url: string | null;
|
|
118
157
|
description?: string | undefined;
|
|
@@ -148,6 +187,10 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
148
187
|
cycle?: string | undefined;
|
|
149
188
|
dueDate?: string | undefined;
|
|
150
189
|
labels?: string[] | undefined;
|
|
190
|
+
trend?: {
|
|
191
|
+
label: string;
|
|
192
|
+
points: number[];
|
|
193
|
+
} | undefined;
|
|
151
194
|
} | {
|
|
152
195
|
type: "deployment";
|
|
153
196
|
summary?: string | undefined;
|
|
@@ -170,6 +213,7 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
170
213
|
summary?: string | undefined;
|
|
171
214
|
owner?: string | undefined;
|
|
172
215
|
modifiedAt?: string | undefined;
|
|
216
|
+
thumbnailUrl?: string | undefined;
|
|
173
217
|
} | {
|
|
174
218
|
type: "message";
|
|
175
219
|
summary?: string | undefined;
|
|
@@ -181,7 +225,43 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
181
225
|
summary?: string | undefined;
|
|
182
226
|
siteName?: string | undefined;
|
|
183
227
|
author?: string | undefined;
|
|
228
|
+
media?: "image" | "video" | undefined;
|
|
184
229
|
thumbnailUrl?: string | undefined;
|
|
230
|
+
} | {
|
|
231
|
+
type: "chart";
|
|
232
|
+
summary?: string | undefined;
|
|
233
|
+
display: "area" | "bar" | "line";
|
|
234
|
+
yAxis: string;
|
|
235
|
+
range: string;
|
|
236
|
+
series: {
|
|
237
|
+
label: string;
|
|
238
|
+
points: number[];
|
|
239
|
+
}[];
|
|
240
|
+
} | {
|
|
241
|
+
type: "event";
|
|
242
|
+
summary?: string | undefined;
|
|
243
|
+
level?: string | undefined;
|
|
244
|
+
project?: string | undefined;
|
|
245
|
+
release?: string | undefined;
|
|
246
|
+
environment?: string | undefined;
|
|
247
|
+
occurredAt?: string | undefined;
|
|
248
|
+
} | {
|
|
249
|
+
type: "trace";
|
|
250
|
+
summary?: string | undefined;
|
|
251
|
+
rootOp?: string | undefined;
|
|
252
|
+
rootName?: string | undefined;
|
|
253
|
+
durationMs: number;
|
|
254
|
+
spanCount: number;
|
|
255
|
+
errorCount: number;
|
|
256
|
+
performanceIssueCount: number;
|
|
257
|
+
projects: string[];
|
|
258
|
+
spans: {
|
|
259
|
+
op?: string | undefined;
|
|
260
|
+
name: string;
|
|
261
|
+
startMs: number;
|
|
262
|
+
durationMs: number;
|
|
263
|
+
issue?: boolean | undefined;
|
|
264
|
+
}[];
|
|
185
265
|
} | {
|
|
186
266
|
type: "person";
|
|
187
267
|
summary?: string | undefined;
|
|
@@ -210,4 +290,6 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
210
290
|
status: string;
|
|
211
291
|
url: string;
|
|
212
292
|
}[];
|
|
293
|
+
}, {
|
|
294
|
+
cache: PluginCache;
|
|
213
295
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PluginEgress } from "@sentry/junior-plugin-api";
|
|
2
2
|
/** Add the App bot's reaction to an issue or pull request itself. */
|
|
3
|
-
export declare
|
|
3
|
+
export declare const gitHubReactToIssueTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
4
4
|
repo: string;
|
|
5
5
|
number: number;
|
|
6
6
|
content: "+1" | "-1" | "confused" | "eyes" | "heart" | "hooray" | "laugh" | "rocket";
|
|
@@ -10,7 +10,7 @@ export declare function createGitHubReactToIssueTool(egress: PluginEgress): impo
|
|
|
10
10
|
kind: "object";
|
|
11
11
|
key: string;
|
|
12
12
|
label: string;
|
|
13
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
13
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
14
14
|
title: string;
|
|
15
15
|
url: string | null;
|
|
16
16
|
description?: string | undefined;
|
|
@@ -46,6 +46,10 @@ export declare function createGitHubReactToIssueTool(egress: PluginEgress): impo
|
|
|
46
46
|
cycle?: string | undefined;
|
|
47
47
|
dueDate?: string | undefined;
|
|
48
48
|
labels?: string[] | undefined;
|
|
49
|
+
trend?: {
|
|
50
|
+
label: string;
|
|
51
|
+
points: number[];
|
|
52
|
+
} | undefined;
|
|
49
53
|
} | {
|
|
50
54
|
type: "deployment";
|
|
51
55
|
summary?: string | undefined;
|
|
@@ -68,6 +72,7 @@ export declare function createGitHubReactToIssueTool(egress: PluginEgress): impo
|
|
|
68
72
|
summary?: string | undefined;
|
|
69
73
|
owner?: string | undefined;
|
|
70
74
|
modifiedAt?: string | undefined;
|
|
75
|
+
thumbnailUrl?: string | undefined;
|
|
71
76
|
} | {
|
|
72
77
|
type: "message";
|
|
73
78
|
summary?: string | undefined;
|
|
@@ -79,7 +84,43 @@ export declare function createGitHubReactToIssueTool(egress: PluginEgress): impo
|
|
|
79
84
|
summary?: string | undefined;
|
|
80
85
|
siteName?: string | undefined;
|
|
81
86
|
author?: string | undefined;
|
|
87
|
+
media?: "image" | "video" | undefined;
|
|
82
88
|
thumbnailUrl?: string | undefined;
|
|
89
|
+
} | {
|
|
90
|
+
type: "chart";
|
|
91
|
+
summary?: string | undefined;
|
|
92
|
+
display: "area" | "bar" | "line";
|
|
93
|
+
yAxis: string;
|
|
94
|
+
range: string;
|
|
95
|
+
series: {
|
|
96
|
+
label: string;
|
|
97
|
+
points: number[];
|
|
98
|
+
}[];
|
|
99
|
+
} | {
|
|
100
|
+
type: "event";
|
|
101
|
+
summary?: string | undefined;
|
|
102
|
+
level?: string | undefined;
|
|
103
|
+
project?: string | undefined;
|
|
104
|
+
release?: string | undefined;
|
|
105
|
+
environment?: string | undefined;
|
|
106
|
+
occurredAt?: string | undefined;
|
|
107
|
+
} | {
|
|
108
|
+
type: "trace";
|
|
109
|
+
summary?: string | undefined;
|
|
110
|
+
rootOp?: string | undefined;
|
|
111
|
+
rootName?: string | undefined;
|
|
112
|
+
durationMs: number;
|
|
113
|
+
spanCount: number;
|
|
114
|
+
errorCount: number;
|
|
115
|
+
performanceIssueCount: number;
|
|
116
|
+
projects: string[];
|
|
117
|
+
spans: {
|
|
118
|
+
op?: string | undefined;
|
|
119
|
+
name: string;
|
|
120
|
+
startMs: number;
|
|
121
|
+
durationMs: number;
|
|
122
|
+
issue?: boolean | undefined;
|
|
123
|
+
}[];
|
|
83
124
|
} | {
|
|
84
125
|
type: "person";
|
|
85
126
|
summary?: string | undefined;
|
|
@@ -109,7 +150,7 @@ export declare function createGitHubReactToIssueTool(egress: PluginEgress): impo
|
|
|
109
150
|
kind: "object";
|
|
110
151
|
key: string;
|
|
111
152
|
label: string;
|
|
112
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
153
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
113
154
|
title: string;
|
|
114
155
|
url: string | null;
|
|
115
156
|
description?: string | undefined;
|
|
@@ -145,6 +186,10 @@ export declare function createGitHubReactToIssueTool(egress: PluginEgress): impo
|
|
|
145
186
|
cycle?: string | undefined;
|
|
146
187
|
dueDate?: string | undefined;
|
|
147
188
|
labels?: string[] | undefined;
|
|
189
|
+
trend?: {
|
|
190
|
+
label: string;
|
|
191
|
+
points: number[];
|
|
192
|
+
} | undefined;
|
|
148
193
|
} | {
|
|
149
194
|
type: "deployment";
|
|
150
195
|
summary?: string | undefined;
|
|
@@ -167,6 +212,7 @@ export declare function createGitHubReactToIssueTool(egress: PluginEgress): impo
|
|
|
167
212
|
summary?: string | undefined;
|
|
168
213
|
owner?: string | undefined;
|
|
169
214
|
modifiedAt?: string | undefined;
|
|
215
|
+
thumbnailUrl?: string | undefined;
|
|
170
216
|
} | {
|
|
171
217
|
type: "message";
|
|
172
218
|
summary?: string | undefined;
|
|
@@ -178,7 +224,43 @@ export declare function createGitHubReactToIssueTool(egress: PluginEgress): impo
|
|
|
178
224
|
summary?: string | undefined;
|
|
179
225
|
siteName?: string | undefined;
|
|
180
226
|
author?: string | undefined;
|
|
227
|
+
media?: "image" | "video" | undefined;
|
|
181
228
|
thumbnailUrl?: string | undefined;
|
|
229
|
+
} | {
|
|
230
|
+
type: "chart";
|
|
231
|
+
summary?: string | undefined;
|
|
232
|
+
display: "area" | "bar" | "line";
|
|
233
|
+
yAxis: string;
|
|
234
|
+
range: string;
|
|
235
|
+
series: {
|
|
236
|
+
label: string;
|
|
237
|
+
points: number[];
|
|
238
|
+
}[];
|
|
239
|
+
} | {
|
|
240
|
+
type: "event";
|
|
241
|
+
summary?: string | undefined;
|
|
242
|
+
level?: string | undefined;
|
|
243
|
+
project?: string | undefined;
|
|
244
|
+
release?: string | undefined;
|
|
245
|
+
environment?: string | undefined;
|
|
246
|
+
occurredAt?: string | undefined;
|
|
247
|
+
} | {
|
|
248
|
+
type: "trace";
|
|
249
|
+
summary?: string | undefined;
|
|
250
|
+
rootOp?: string | undefined;
|
|
251
|
+
rootName?: string | undefined;
|
|
252
|
+
durationMs: number;
|
|
253
|
+
spanCount: number;
|
|
254
|
+
errorCount: number;
|
|
255
|
+
performanceIssueCount: number;
|
|
256
|
+
projects: string[];
|
|
257
|
+
spans: {
|
|
258
|
+
op?: string | undefined;
|
|
259
|
+
name: string;
|
|
260
|
+
startMs: number;
|
|
261
|
+
durationMs: number;
|
|
262
|
+
issue?: boolean | undefined;
|
|
263
|
+
}[];
|
|
182
264
|
} | {
|
|
183
265
|
type: "person";
|
|
184
266
|
summary?: string | undefined;
|
|
@@ -202,4 +284,6 @@ export declare function createGitHubReactToIssueTool(egress: PluginEgress): impo
|
|
|
202
284
|
number: number;
|
|
203
285
|
content: "+1" | "-1" | "confused" | "eyes" | "heart" | "hooray" | "laugh" | "rocket";
|
|
204
286
|
reaction_id: number;
|
|
287
|
+
}, {
|
|
288
|
+
egress: PluginEgress;
|
|
205
289
|
}>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { type PluginEgress } from "@sentry/junior-plugin-api";
|
|
2
2
|
/** Resolve one review thread after GitHub proves it belongs to a bot-authored PR. */
|
|
3
|
-
export declare function createGitHubResolvePullRequestReviewThreadTool(
|
|
4
|
-
egress: PluginEgress;
|
|
5
|
-
}, botEmail: string | undefined): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
3
|
+
export declare function createGitHubResolvePullRequestReviewThreadTool(botEmail: string | undefined): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
6
4
|
repo: string;
|
|
7
5
|
thread_id: string;
|
|
8
6
|
}, {
|
|
@@ -11,7 +9,7 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
11
9
|
kind: "object";
|
|
12
10
|
key: string;
|
|
13
11
|
label: string;
|
|
14
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
12
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
15
13
|
title: string;
|
|
16
14
|
url: string | null;
|
|
17
15
|
description?: string | undefined;
|
|
@@ -47,6 +45,10 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
47
45
|
cycle?: string | undefined;
|
|
48
46
|
dueDate?: string | undefined;
|
|
49
47
|
labels?: string[] | undefined;
|
|
48
|
+
trend?: {
|
|
49
|
+
label: string;
|
|
50
|
+
points: number[];
|
|
51
|
+
} | undefined;
|
|
50
52
|
} | {
|
|
51
53
|
type: "deployment";
|
|
52
54
|
summary?: string | undefined;
|
|
@@ -69,6 +71,7 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
69
71
|
summary?: string | undefined;
|
|
70
72
|
owner?: string | undefined;
|
|
71
73
|
modifiedAt?: string | undefined;
|
|
74
|
+
thumbnailUrl?: string | undefined;
|
|
72
75
|
} | {
|
|
73
76
|
type: "message";
|
|
74
77
|
summary?: string | undefined;
|
|
@@ -80,7 +83,43 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
80
83
|
summary?: string | undefined;
|
|
81
84
|
siteName?: string | undefined;
|
|
82
85
|
author?: string | undefined;
|
|
86
|
+
media?: "image" | "video" | undefined;
|
|
83
87
|
thumbnailUrl?: string | undefined;
|
|
88
|
+
} | {
|
|
89
|
+
type: "chart";
|
|
90
|
+
summary?: string | undefined;
|
|
91
|
+
display: "area" | "bar" | "line";
|
|
92
|
+
yAxis: string;
|
|
93
|
+
range: string;
|
|
94
|
+
series: {
|
|
95
|
+
label: string;
|
|
96
|
+
points: number[];
|
|
97
|
+
}[];
|
|
98
|
+
} | {
|
|
99
|
+
type: "event";
|
|
100
|
+
summary?: string | undefined;
|
|
101
|
+
level?: string | undefined;
|
|
102
|
+
project?: string | undefined;
|
|
103
|
+
release?: string | undefined;
|
|
104
|
+
environment?: string | undefined;
|
|
105
|
+
occurredAt?: string | undefined;
|
|
106
|
+
} | {
|
|
107
|
+
type: "trace";
|
|
108
|
+
summary?: string | undefined;
|
|
109
|
+
rootOp?: string | undefined;
|
|
110
|
+
rootName?: string | undefined;
|
|
111
|
+
durationMs: number;
|
|
112
|
+
spanCount: number;
|
|
113
|
+
errorCount: number;
|
|
114
|
+
performanceIssueCount: number;
|
|
115
|
+
projects: string[];
|
|
116
|
+
spans: {
|
|
117
|
+
op?: string | undefined;
|
|
118
|
+
name: string;
|
|
119
|
+
startMs: number;
|
|
120
|
+
durationMs: number;
|
|
121
|
+
issue?: boolean | undefined;
|
|
122
|
+
}[];
|
|
84
123
|
} | {
|
|
85
124
|
type: "person";
|
|
86
125
|
summary?: string | undefined;
|
|
@@ -110,7 +149,7 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
110
149
|
kind: "object";
|
|
111
150
|
key: string;
|
|
112
151
|
label: string;
|
|
113
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
152
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
114
153
|
title: string;
|
|
115
154
|
url: string | null;
|
|
116
155
|
description?: string | undefined;
|
|
@@ -146,6 +185,10 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
146
185
|
cycle?: string | undefined;
|
|
147
186
|
dueDate?: string | undefined;
|
|
148
187
|
labels?: string[] | undefined;
|
|
188
|
+
trend?: {
|
|
189
|
+
label: string;
|
|
190
|
+
points: number[];
|
|
191
|
+
} | undefined;
|
|
149
192
|
} | {
|
|
150
193
|
type: "deployment";
|
|
151
194
|
summary?: string | undefined;
|
|
@@ -168,6 +211,7 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
168
211
|
summary?: string | undefined;
|
|
169
212
|
owner?: string | undefined;
|
|
170
213
|
modifiedAt?: string | undefined;
|
|
214
|
+
thumbnailUrl?: string | undefined;
|
|
171
215
|
} | {
|
|
172
216
|
type: "message";
|
|
173
217
|
summary?: string | undefined;
|
|
@@ -179,7 +223,43 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
179
223
|
summary?: string | undefined;
|
|
180
224
|
siteName?: string | undefined;
|
|
181
225
|
author?: string | undefined;
|
|
226
|
+
media?: "image" | "video" | undefined;
|
|
182
227
|
thumbnailUrl?: string | undefined;
|
|
228
|
+
} | {
|
|
229
|
+
type: "chart";
|
|
230
|
+
summary?: string | undefined;
|
|
231
|
+
display: "area" | "bar" | "line";
|
|
232
|
+
yAxis: string;
|
|
233
|
+
range: string;
|
|
234
|
+
series: {
|
|
235
|
+
label: string;
|
|
236
|
+
points: number[];
|
|
237
|
+
}[];
|
|
238
|
+
} | {
|
|
239
|
+
type: "event";
|
|
240
|
+
summary?: string | undefined;
|
|
241
|
+
level?: string | undefined;
|
|
242
|
+
project?: string | undefined;
|
|
243
|
+
release?: string | undefined;
|
|
244
|
+
environment?: string | undefined;
|
|
245
|
+
occurredAt?: string | undefined;
|
|
246
|
+
} | {
|
|
247
|
+
type: "trace";
|
|
248
|
+
summary?: string | undefined;
|
|
249
|
+
rootOp?: string | undefined;
|
|
250
|
+
rootName?: string | undefined;
|
|
251
|
+
durationMs: number;
|
|
252
|
+
spanCount: number;
|
|
253
|
+
errorCount: number;
|
|
254
|
+
performanceIssueCount: number;
|
|
255
|
+
projects: string[];
|
|
256
|
+
spans: {
|
|
257
|
+
op?: string | undefined;
|
|
258
|
+
name: string;
|
|
259
|
+
startMs: number;
|
|
260
|
+
durationMs: number;
|
|
261
|
+
issue?: boolean | undefined;
|
|
262
|
+
}[];
|
|
183
263
|
} | {
|
|
184
264
|
type: "person";
|
|
185
265
|
summary?: string | undefined;
|
|
@@ -203,4 +283,6 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
203
283
|
number: number;
|
|
204
284
|
thread_id: string;
|
|
205
285
|
resolved: boolean;
|
|
286
|
+
}, {
|
|
287
|
+
egress: PluginEgress;
|
|
206
288
|
}>;
|