@sentry/junior-github 0.301.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/{chunk-YUF5P5I7.js → chunk-6SOJ5TN6.js} +142 -31
- package/dist/clone-command.d.ts +2 -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/index.js +2060 -1699
- package/dist/merge-conflict-checks/heartbeat.d.ts +9 -5
- package/dist/merge-conflict-checks/policy.d.ts +74 -0
- package/dist/pull-request-outcomes/reconcile.d.ts +2 -1
- package/dist/pull-request-outcomes/store.d.ts +15 -10
- package/dist/testing.js +1 -1
- package/dist/tool-support/github-text.d.ts +2 -2
- 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 +3 -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,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
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PluginEgress } from "@sentry/junior-plugin-api";
|
|
2
2
|
/** Submit a comment or change-request review through GitHub's REST API. */
|
|
3
|
-
export declare
|
|
3
|
+
export declare const gitHubSubmitPullRequestReviewTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
4
4
|
repo: string;
|
|
5
5
|
number: number;
|
|
6
6
|
event: "COMMENT" | "REQUEST_CHANGES";
|
|
@@ -19,7 +19,7 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
19
19
|
kind: "object";
|
|
20
20
|
key: string;
|
|
21
21
|
label: string;
|
|
22
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
22
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
23
23
|
title: string;
|
|
24
24
|
url: string | null;
|
|
25
25
|
description?: string | undefined;
|
|
@@ -55,6 +55,10 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
55
55
|
cycle?: string | undefined;
|
|
56
56
|
dueDate?: string | undefined;
|
|
57
57
|
labels?: string[] | undefined;
|
|
58
|
+
trend?: {
|
|
59
|
+
label: string;
|
|
60
|
+
points: number[];
|
|
61
|
+
} | undefined;
|
|
58
62
|
} | {
|
|
59
63
|
type: "deployment";
|
|
60
64
|
summary?: string | undefined;
|
|
@@ -77,6 +81,7 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
77
81
|
summary?: string | undefined;
|
|
78
82
|
owner?: string | undefined;
|
|
79
83
|
modifiedAt?: string | undefined;
|
|
84
|
+
thumbnailUrl?: string | undefined;
|
|
80
85
|
} | {
|
|
81
86
|
type: "message";
|
|
82
87
|
summary?: string | undefined;
|
|
@@ -88,7 +93,43 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
88
93
|
summary?: string | undefined;
|
|
89
94
|
siteName?: string | undefined;
|
|
90
95
|
author?: string | undefined;
|
|
96
|
+
media?: "image" | "video" | undefined;
|
|
91
97
|
thumbnailUrl?: string | undefined;
|
|
98
|
+
} | {
|
|
99
|
+
type: "chart";
|
|
100
|
+
summary?: string | undefined;
|
|
101
|
+
display: "area" | "bar" | "line";
|
|
102
|
+
yAxis: string;
|
|
103
|
+
range: string;
|
|
104
|
+
series: {
|
|
105
|
+
label: string;
|
|
106
|
+
points: number[];
|
|
107
|
+
}[];
|
|
108
|
+
} | {
|
|
109
|
+
type: "event";
|
|
110
|
+
summary?: string | undefined;
|
|
111
|
+
level?: string | undefined;
|
|
112
|
+
project?: string | undefined;
|
|
113
|
+
release?: string | undefined;
|
|
114
|
+
environment?: string | undefined;
|
|
115
|
+
occurredAt?: string | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
type: "trace";
|
|
118
|
+
summary?: string | undefined;
|
|
119
|
+
rootOp?: string | undefined;
|
|
120
|
+
rootName?: string | undefined;
|
|
121
|
+
durationMs: number;
|
|
122
|
+
spanCount: number;
|
|
123
|
+
errorCount: number;
|
|
124
|
+
performanceIssueCount: number;
|
|
125
|
+
projects: string[];
|
|
126
|
+
spans: {
|
|
127
|
+
op?: string | undefined;
|
|
128
|
+
name: string;
|
|
129
|
+
startMs: number;
|
|
130
|
+
durationMs: number;
|
|
131
|
+
issue?: boolean | undefined;
|
|
132
|
+
}[];
|
|
92
133
|
} | {
|
|
93
134
|
type: "person";
|
|
94
135
|
summary?: string | undefined;
|
|
@@ -119,7 +160,7 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
119
160
|
kind: "object";
|
|
120
161
|
key: string;
|
|
121
162
|
label: string;
|
|
122
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
163
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
123
164
|
title: string;
|
|
124
165
|
url: string | null;
|
|
125
166
|
description?: string | undefined;
|
|
@@ -155,6 +196,10 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
155
196
|
cycle?: string | undefined;
|
|
156
197
|
dueDate?: string | undefined;
|
|
157
198
|
labels?: string[] | undefined;
|
|
199
|
+
trend?: {
|
|
200
|
+
label: string;
|
|
201
|
+
points: number[];
|
|
202
|
+
} | undefined;
|
|
158
203
|
} | {
|
|
159
204
|
type: "deployment";
|
|
160
205
|
summary?: string | undefined;
|
|
@@ -177,6 +222,7 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
177
222
|
summary?: string | undefined;
|
|
178
223
|
owner?: string | undefined;
|
|
179
224
|
modifiedAt?: string | undefined;
|
|
225
|
+
thumbnailUrl?: string | undefined;
|
|
180
226
|
} | {
|
|
181
227
|
type: "message";
|
|
182
228
|
summary?: string | undefined;
|
|
@@ -188,7 +234,43 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
188
234
|
summary?: string | undefined;
|
|
189
235
|
siteName?: string | undefined;
|
|
190
236
|
author?: string | undefined;
|
|
237
|
+
media?: "image" | "video" | undefined;
|
|
191
238
|
thumbnailUrl?: string | undefined;
|
|
239
|
+
} | {
|
|
240
|
+
type: "chart";
|
|
241
|
+
summary?: string | undefined;
|
|
242
|
+
display: "area" | "bar" | "line";
|
|
243
|
+
yAxis: string;
|
|
244
|
+
range: string;
|
|
245
|
+
series: {
|
|
246
|
+
label: string;
|
|
247
|
+
points: number[];
|
|
248
|
+
}[];
|
|
249
|
+
} | {
|
|
250
|
+
type: "event";
|
|
251
|
+
summary?: string | undefined;
|
|
252
|
+
level?: string | undefined;
|
|
253
|
+
project?: string | undefined;
|
|
254
|
+
release?: string | undefined;
|
|
255
|
+
environment?: string | undefined;
|
|
256
|
+
occurredAt?: string | undefined;
|
|
257
|
+
} | {
|
|
258
|
+
type: "trace";
|
|
259
|
+
summary?: string | undefined;
|
|
260
|
+
rootOp?: string | undefined;
|
|
261
|
+
rootName?: string | undefined;
|
|
262
|
+
durationMs: number;
|
|
263
|
+
spanCount: number;
|
|
264
|
+
errorCount: number;
|
|
265
|
+
performanceIssueCount: number;
|
|
266
|
+
projects: string[];
|
|
267
|
+
spans: {
|
|
268
|
+
op?: string | undefined;
|
|
269
|
+
name: string;
|
|
270
|
+
startMs: number;
|
|
271
|
+
durationMs: number;
|
|
272
|
+
issue?: boolean | undefined;
|
|
273
|
+
}[];
|
|
192
274
|
} | {
|
|
193
275
|
type: "person";
|
|
194
276
|
summary?: string | undefined;
|
|
@@ -213,4 +295,6 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
213
295
|
review_id: number;
|
|
214
296
|
state: string;
|
|
215
297
|
url: string;
|
|
298
|
+
}, {
|
|
299
|
+
egress: PluginEgress;
|
|
216
300
|
}>;
|