@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,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
|
}>;
|
|
@@ -3,7 +3,7 @@ import { type PluginEgress } from "@sentry/junior-plugin-api";
|
|
|
3
3
|
* Replace the body of an issue or pull request conversation comment that the
|
|
4
4
|
* App bot posted. Comments by other users are refused before the write.
|
|
5
5
|
*/
|
|
6
|
-
export declare function createGitHubUpdateIssueCommentTool(
|
|
6
|
+
export declare function createGitHubUpdateIssueCommentTool(botEmail: string | undefined): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
7
7
|
repo: string;
|
|
8
8
|
comment_id: number;
|
|
9
9
|
body: string;
|
|
@@ -13,7 +13,7 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
|
|
|
13
13
|
kind: "object";
|
|
14
14
|
key: string;
|
|
15
15
|
label: string;
|
|
16
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
16
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
17
17
|
title: string;
|
|
18
18
|
url: string | null;
|
|
19
19
|
description?: string | undefined;
|
|
@@ -49,6 +49,10 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
|
|
|
49
49
|
cycle?: string | undefined;
|
|
50
50
|
dueDate?: string | undefined;
|
|
51
51
|
labels?: string[] | undefined;
|
|
52
|
+
trend?: {
|
|
53
|
+
label: string;
|
|
54
|
+
points: number[];
|
|
55
|
+
} | undefined;
|
|
52
56
|
} | {
|
|
53
57
|
type: "deployment";
|
|
54
58
|
summary?: string | undefined;
|
|
@@ -71,6 +75,7 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
|
|
|
71
75
|
summary?: string | undefined;
|
|
72
76
|
owner?: string | undefined;
|
|
73
77
|
modifiedAt?: string | undefined;
|
|
78
|
+
thumbnailUrl?: string | undefined;
|
|
74
79
|
} | {
|
|
75
80
|
type: "message";
|
|
76
81
|
summary?: string | undefined;
|
|
@@ -82,7 +87,43 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
|
|
|
82
87
|
summary?: string | undefined;
|
|
83
88
|
siteName?: string | undefined;
|
|
84
89
|
author?: string | undefined;
|
|
90
|
+
media?: "image" | "video" | undefined;
|
|
85
91
|
thumbnailUrl?: string | undefined;
|
|
92
|
+
} | {
|
|
93
|
+
type: "chart";
|
|
94
|
+
summary?: string | undefined;
|
|
95
|
+
display: "area" | "bar" | "line";
|
|
96
|
+
yAxis: string;
|
|
97
|
+
range: string;
|
|
98
|
+
series: {
|
|
99
|
+
label: string;
|
|
100
|
+
points: number[];
|
|
101
|
+
}[];
|
|
102
|
+
} | {
|
|
103
|
+
type: "event";
|
|
104
|
+
summary?: string | undefined;
|
|
105
|
+
level?: string | undefined;
|
|
106
|
+
project?: string | undefined;
|
|
107
|
+
release?: string | undefined;
|
|
108
|
+
environment?: string | undefined;
|
|
109
|
+
occurredAt?: string | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
type: "trace";
|
|
112
|
+
summary?: string | undefined;
|
|
113
|
+
rootOp?: string | undefined;
|
|
114
|
+
rootName?: string | undefined;
|
|
115
|
+
durationMs: number;
|
|
116
|
+
spanCount: number;
|
|
117
|
+
errorCount: number;
|
|
118
|
+
performanceIssueCount: number;
|
|
119
|
+
projects: string[];
|
|
120
|
+
spans: {
|
|
121
|
+
op?: string | undefined;
|
|
122
|
+
name: string;
|
|
123
|
+
startMs: number;
|
|
124
|
+
durationMs: number;
|
|
125
|
+
issue?: boolean | undefined;
|
|
126
|
+
}[];
|
|
86
127
|
} | {
|
|
87
128
|
type: "person";
|
|
88
129
|
summary?: string | undefined;
|
|
@@ -111,7 +152,7 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
|
|
|
111
152
|
kind: "object";
|
|
112
153
|
key: string;
|
|
113
154
|
label: string;
|
|
114
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
155
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
115
156
|
title: string;
|
|
116
157
|
url: string | null;
|
|
117
158
|
description?: string | undefined;
|
|
@@ -147,6 +188,10 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
|
|
|
147
188
|
cycle?: string | undefined;
|
|
148
189
|
dueDate?: string | undefined;
|
|
149
190
|
labels?: string[] | undefined;
|
|
191
|
+
trend?: {
|
|
192
|
+
label: string;
|
|
193
|
+
points: number[];
|
|
194
|
+
} | undefined;
|
|
150
195
|
} | {
|
|
151
196
|
type: "deployment";
|
|
152
197
|
summary?: string | undefined;
|
|
@@ -169,6 +214,7 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
|
|
|
169
214
|
summary?: string | undefined;
|
|
170
215
|
owner?: string | undefined;
|
|
171
216
|
modifiedAt?: string | undefined;
|
|
217
|
+
thumbnailUrl?: string | undefined;
|
|
172
218
|
} | {
|
|
173
219
|
type: "message";
|
|
174
220
|
summary?: string | undefined;
|
|
@@ -180,7 +226,43 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
|
|
|
180
226
|
summary?: string | undefined;
|
|
181
227
|
siteName?: string | undefined;
|
|
182
228
|
author?: string | undefined;
|
|
229
|
+
media?: "image" | "video" | undefined;
|
|
183
230
|
thumbnailUrl?: string | undefined;
|
|
231
|
+
} | {
|
|
232
|
+
type: "chart";
|
|
233
|
+
summary?: string | undefined;
|
|
234
|
+
display: "area" | "bar" | "line";
|
|
235
|
+
yAxis: string;
|
|
236
|
+
range: string;
|
|
237
|
+
series: {
|
|
238
|
+
label: string;
|
|
239
|
+
points: number[];
|
|
240
|
+
}[];
|
|
241
|
+
} | {
|
|
242
|
+
type: "event";
|
|
243
|
+
summary?: string | undefined;
|
|
244
|
+
level?: string | undefined;
|
|
245
|
+
project?: string | undefined;
|
|
246
|
+
release?: string | undefined;
|
|
247
|
+
environment?: string | undefined;
|
|
248
|
+
occurredAt?: string | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
type: "trace";
|
|
251
|
+
summary?: string | undefined;
|
|
252
|
+
rootOp?: string | undefined;
|
|
253
|
+
rootName?: string | undefined;
|
|
254
|
+
durationMs: number;
|
|
255
|
+
spanCount: number;
|
|
256
|
+
errorCount: number;
|
|
257
|
+
performanceIssueCount: number;
|
|
258
|
+
projects: string[];
|
|
259
|
+
spans: {
|
|
260
|
+
op?: string | undefined;
|
|
261
|
+
name: string;
|
|
262
|
+
startMs: number;
|
|
263
|
+
durationMs: number;
|
|
264
|
+
issue?: boolean | undefined;
|
|
265
|
+
}[];
|
|
184
266
|
} | {
|
|
185
267
|
type: "person";
|
|
186
268
|
summary?: string | undefined;
|
|
@@ -203,4 +285,6 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
|
|
|
203
285
|
repo: string;
|
|
204
286
|
comment_id: number;
|
|
205
287
|
url: string;
|
|
288
|
+
}, {
|
|
289
|
+
egress: PluginEgress;
|
|
206
290
|
}>;
|
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
import { type Identity, type User, type Actor, type PluginLogger, type PluginEgress, type Source } from "@sentry/junior-plugin-api";
|
|
2
2
|
/** Update mutable issue metadata while preserving runtime-owned body attribution. */
|
|
3
|
-
export declare
|
|
4
|
-
actor?: Actor;
|
|
5
|
-
automationLink?: {
|
|
6
|
-
url: string;
|
|
7
|
-
};
|
|
8
|
-
conversationId?: string;
|
|
9
|
-
egress: PluginEgress;
|
|
10
|
-
log: PluginLogger;
|
|
11
|
-
events: {
|
|
12
|
-
canSubscribe: boolean;
|
|
13
|
-
};
|
|
14
|
-
conversationLink?: {
|
|
15
|
-
url: string;
|
|
16
|
-
};
|
|
17
|
-
source?: Source;
|
|
18
|
-
users: {
|
|
19
|
-
resolveActor(): Promise<{
|
|
20
|
-
identity?: Identity;
|
|
21
|
-
user?: User;
|
|
22
|
-
} | undefined>;
|
|
23
|
-
};
|
|
24
|
-
}): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
3
|
+
export declare const gitHubUpdateIssueTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
25
4
|
repo: string;
|
|
26
5
|
number: number;
|
|
27
6
|
title?: string | undefined;
|
|
@@ -33,7 +12,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
33
12
|
kind: "object";
|
|
34
13
|
key: string;
|
|
35
14
|
label: string;
|
|
36
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
15
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
37
16
|
title: string;
|
|
38
17
|
url: string | null;
|
|
39
18
|
description?: string | undefined;
|
|
@@ -69,6 +48,10 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
69
48
|
cycle?: string | undefined;
|
|
70
49
|
dueDate?: string | undefined;
|
|
71
50
|
labels?: string[] | undefined;
|
|
51
|
+
trend?: {
|
|
52
|
+
label: string;
|
|
53
|
+
points: number[];
|
|
54
|
+
} | undefined;
|
|
72
55
|
} | {
|
|
73
56
|
type: "deployment";
|
|
74
57
|
summary?: string | undefined;
|
|
@@ -91,6 +74,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
91
74
|
summary?: string | undefined;
|
|
92
75
|
owner?: string | undefined;
|
|
93
76
|
modifiedAt?: string | undefined;
|
|
77
|
+
thumbnailUrl?: string | undefined;
|
|
94
78
|
} | {
|
|
95
79
|
type: "message";
|
|
96
80
|
summary?: string | undefined;
|
|
@@ -102,7 +86,43 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
102
86
|
summary?: string | undefined;
|
|
103
87
|
siteName?: string | undefined;
|
|
104
88
|
author?: string | undefined;
|
|
89
|
+
media?: "image" | "video" | undefined;
|
|
105
90
|
thumbnailUrl?: string | undefined;
|
|
91
|
+
} | {
|
|
92
|
+
type: "chart";
|
|
93
|
+
summary?: string | undefined;
|
|
94
|
+
display: "area" | "bar" | "line";
|
|
95
|
+
yAxis: string;
|
|
96
|
+
range: string;
|
|
97
|
+
series: {
|
|
98
|
+
label: string;
|
|
99
|
+
points: number[];
|
|
100
|
+
}[];
|
|
101
|
+
} | {
|
|
102
|
+
type: "event";
|
|
103
|
+
summary?: string | undefined;
|
|
104
|
+
level?: string | undefined;
|
|
105
|
+
project?: string | undefined;
|
|
106
|
+
release?: string | undefined;
|
|
107
|
+
environment?: string | undefined;
|
|
108
|
+
occurredAt?: string | undefined;
|
|
109
|
+
} | {
|
|
110
|
+
type: "trace";
|
|
111
|
+
summary?: string | undefined;
|
|
112
|
+
rootOp?: string | undefined;
|
|
113
|
+
rootName?: string | undefined;
|
|
114
|
+
durationMs: number;
|
|
115
|
+
spanCount: number;
|
|
116
|
+
errorCount: number;
|
|
117
|
+
performanceIssueCount: number;
|
|
118
|
+
projects: string[];
|
|
119
|
+
spans: {
|
|
120
|
+
op?: string | undefined;
|
|
121
|
+
name: string;
|
|
122
|
+
startMs: number;
|
|
123
|
+
durationMs: number;
|
|
124
|
+
issue?: boolean | undefined;
|
|
125
|
+
}[];
|
|
106
126
|
} | {
|
|
107
127
|
type: "person";
|
|
108
128
|
summary?: string | undefined;
|
|
@@ -142,7 +162,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
142
162
|
kind: "object";
|
|
143
163
|
key: string;
|
|
144
164
|
label: string;
|
|
145
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
165
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
146
166
|
title: string;
|
|
147
167
|
url: string | null;
|
|
148
168
|
description?: string | undefined;
|
|
@@ -178,6 +198,10 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
178
198
|
cycle?: string | undefined;
|
|
179
199
|
dueDate?: string | undefined;
|
|
180
200
|
labels?: string[] | undefined;
|
|
201
|
+
trend?: {
|
|
202
|
+
label: string;
|
|
203
|
+
points: number[];
|
|
204
|
+
} | undefined;
|
|
181
205
|
} | {
|
|
182
206
|
type: "deployment";
|
|
183
207
|
summary?: string | undefined;
|
|
@@ -200,6 +224,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
200
224
|
summary?: string | undefined;
|
|
201
225
|
owner?: string | undefined;
|
|
202
226
|
modifiedAt?: string | undefined;
|
|
227
|
+
thumbnailUrl?: string | undefined;
|
|
203
228
|
} | {
|
|
204
229
|
type: "message";
|
|
205
230
|
summary?: string | undefined;
|
|
@@ -211,7 +236,43 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
211
236
|
summary?: string | undefined;
|
|
212
237
|
siteName?: string | undefined;
|
|
213
238
|
author?: string | undefined;
|
|
239
|
+
media?: "image" | "video" | undefined;
|
|
214
240
|
thumbnailUrl?: string | undefined;
|
|
241
|
+
} | {
|
|
242
|
+
type: "chart";
|
|
243
|
+
summary?: string | undefined;
|
|
244
|
+
display: "area" | "bar" | "line";
|
|
245
|
+
yAxis: string;
|
|
246
|
+
range: string;
|
|
247
|
+
series: {
|
|
248
|
+
label: string;
|
|
249
|
+
points: number[];
|
|
250
|
+
}[];
|
|
251
|
+
} | {
|
|
252
|
+
type: "event";
|
|
253
|
+
summary?: string | undefined;
|
|
254
|
+
level?: string | undefined;
|
|
255
|
+
project?: string | undefined;
|
|
256
|
+
release?: string | undefined;
|
|
257
|
+
environment?: string | undefined;
|
|
258
|
+
occurredAt?: string | undefined;
|
|
259
|
+
} | {
|
|
260
|
+
type: "trace";
|
|
261
|
+
summary?: string | undefined;
|
|
262
|
+
rootOp?: string | undefined;
|
|
263
|
+
rootName?: string | undefined;
|
|
264
|
+
durationMs: number;
|
|
265
|
+
spanCount: number;
|
|
266
|
+
errorCount: number;
|
|
267
|
+
performanceIssueCount: number;
|
|
268
|
+
projects: string[];
|
|
269
|
+
spans: {
|
|
270
|
+
op?: string | undefined;
|
|
271
|
+
name: string;
|
|
272
|
+
startMs: number;
|
|
273
|
+
durationMs: number;
|
|
274
|
+
issue?: boolean | undefined;
|
|
275
|
+
}[];
|
|
215
276
|
} | {
|
|
216
277
|
type: "person";
|
|
217
278
|
summary?: string | undefined;
|
|
@@ -246,4 +307,25 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
246
307
|
title: string;
|
|
247
308
|
url: string;
|
|
248
309
|
target: "updateIssue";
|
|
310
|
+
}, {
|
|
311
|
+
actor?: Actor;
|
|
312
|
+
automationLink?: {
|
|
313
|
+
url: string;
|
|
314
|
+
};
|
|
315
|
+
conversationId?: string;
|
|
316
|
+
egress: PluginEgress;
|
|
317
|
+
log: PluginLogger;
|
|
318
|
+
events: {
|
|
319
|
+
canSubscribe: boolean;
|
|
320
|
+
};
|
|
321
|
+
conversationLink?: {
|
|
322
|
+
url: string;
|
|
323
|
+
};
|
|
324
|
+
source?: Source;
|
|
325
|
+
users: {
|
|
326
|
+
resolveActor(): Promise<{
|
|
327
|
+
identity?: Identity;
|
|
328
|
+
user?: User;
|
|
329
|
+
} | undefined>;
|
|
330
|
+
};
|
|
249
331
|
}>;
|
|
@@ -34,9 +34,7 @@ export declare function graphqlReactionContent(content: string): string;
|
|
|
34
34
|
* Set Junior's feedback reaction on a pull request comment or review body.
|
|
35
35
|
* Replace only state reactions Junior previously added to the same comment.
|
|
36
36
|
*/
|
|
37
|
-
export declare function createGitHubUpdatePullRequestFeedbackTool(
|
|
38
|
-
egress: PluginEgress;
|
|
39
|
-
}, botEmail: string | undefined): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
37
|
+
export declare function createGitHubUpdatePullRequestFeedbackTool(botEmail: string | undefined): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
40
38
|
repo: string;
|
|
41
39
|
comment_kind: "conversation" | "review" | "review_body";
|
|
42
40
|
comment_id: number;
|
|
@@ -48,7 +46,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
48
46
|
kind: "object";
|
|
49
47
|
key: string;
|
|
50
48
|
label: string;
|
|
51
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
49
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
52
50
|
title: string;
|
|
53
51
|
url: string | null;
|
|
54
52
|
description?: string | undefined;
|
|
@@ -84,6 +82,10 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
84
82
|
cycle?: string | undefined;
|
|
85
83
|
dueDate?: string | undefined;
|
|
86
84
|
labels?: string[] | undefined;
|
|
85
|
+
trend?: {
|
|
86
|
+
label: string;
|
|
87
|
+
points: number[];
|
|
88
|
+
} | undefined;
|
|
87
89
|
} | {
|
|
88
90
|
type: "deployment";
|
|
89
91
|
summary?: string | undefined;
|
|
@@ -106,6 +108,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
106
108
|
summary?: string | undefined;
|
|
107
109
|
owner?: string | undefined;
|
|
108
110
|
modifiedAt?: string | undefined;
|
|
111
|
+
thumbnailUrl?: string | undefined;
|
|
109
112
|
} | {
|
|
110
113
|
type: "message";
|
|
111
114
|
summary?: string | undefined;
|
|
@@ -117,7 +120,43 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
117
120
|
summary?: string | undefined;
|
|
118
121
|
siteName?: string | undefined;
|
|
119
122
|
author?: string | undefined;
|
|
123
|
+
media?: "image" | "video" | undefined;
|
|
120
124
|
thumbnailUrl?: string | undefined;
|
|
125
|
+
} | {
|
|
126
|
+
type: "chart";
|
|
127
|
+
summary?: string | undefined;
|
|
128
|
+
display: "area" | "bar" | "line";
|
|
129
|
+
yAxis: string;
|
|
130
|
+
range: string;
|
|
131
|
+
series: {
|
|
132
|
+
label: string;
|
|
133
|
+
points: number[];
|
|
134
|
+
}[];
|
|
135
|
+
} | {
|
|
136
|
+
type: "event";
|
|
137
|
+
summary?: string | undefined;
|
|
138
|
+
level?: string | undefined;
|
|
139
|
+
project?: string | undefined;
|
|
140
|
+
release?: string | undefined;
|
|
141
|
+
environment?: string | undefined;
|
|
142
|
+
occurredAt?: string | undefined;
|
|
143
|
+
} | {
|
|
144
|
+
type: "trace";
|
|
145
|
+
summary?: string | undefined;
|
|
146
|
+
rootOp?: string | undefined;
|
|
147
|
+
rootName?: string | undefined;
|
|
148
|
+
durationMs: number;
|
|
149
|
+
spanCount: number;
|
|
150
|
+
errorCount: number;
|
|
151
|
+
performanceIssueCount: number;
|
|
152
|
+
projects: string[];
|
|
153
|
+
spans: {
|
|
154
|
+
op?: string | undefined;
|
|
155
|
+
name: string;
|
|
156
|
+
startMs: number;
|
|
157
|
+
durationMs: number;
|
|
158
|
+
issue?: boolean | undefined;
|
|
159
|
+
}[];
|
|
121
160
|
} | {
|
|
122
161
|
type: "person";
|
|
123
162
|
summary?: string | undefined;
|
|
@@ -146,7 +185,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
146
185
|
kind: "object";
|
|
147
186
|
key: string;
|
|
148
187
|
label: string;
|
|
149
|
-
objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
|
|
188
|
+
objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
|
|
150
189
|
title: string;
|
|
151
190
|
url: string | null;
|
|
152
191
|
description?: string | undefined;
|
|
@@ -182,6 +221,10 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
182
221
|
cycle?: string | undefined;
|
|
183
222
|
dueDate?: string | undefined;
|
|
184
223
|
labels?: string[] | undefined;
|
|
224
|
+
trend?: {
|
|
225
|
+
label: string;
|
|
226
|
+
points: number[];
|
|
227
|
+
} | undefined;
|
|
185
228
|
} | {
|
|
186
229
|
type: "deployment";
|
|
187
230
|
summary?: string | undefined;
|
|
@@ -204,6 +247,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
204
247
|
summary?: string | undefined;
|
|
205
248
|
owner?: string | undefined;
|
|
206
249
|
modifiedAt?: string | undefined;
|
|
250
|
+
thumbnailUrl?: string | undefined;
|
|
207
251
|
} | {
|
|
208
252
|
type: "message";
|
|
209
253
|
summary?: string | undefined;
|
|
@@ -215,7 +259,43 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
215
259
|
summary?: string | undefined;
|
|
216
260
|
siteName?: string | undefined;
|
|
217
261
|
author?: string | undefined;
|
|
262
|
+
media?: "image" | "video" | undefined;
|
|
218
263
|
thumbnailUrl?: string | undefined;
|
|
264
|
+
} | {
|
|
265
|
+
type: "chart";
|
|
266
|
+
summary?: string | undefined;
|
|
267
|
+
display: "area" | "bar" | "line";
|
|
268
|
+
yAxis: string;
|
|
269
|
+
range: string;
|
|
270
|
+
series: {
|
|
271
|
+
label: string;
|
|
272
|
+
points: number[];
|
|
273
|
+
}[];
|
|
274
|
+
} | {
|
|
275
|
+
type: "event";
|
|
276
|
+
summary?: string | undefined;
|
|
277
|
+
level?: string | undefined;
|
|
278
|
+
project?: string | undefined;
|
|
279
|
+
release?: string | undefined;
|
|
280
|
+
environment?: string | undefined;
|
|
281
|
+
occurredAt?: string | undefined;
|
|
282
|
+
} | {
|
|
283
|
+
type: "trace";
|
|
284
|
+
summary?: string | undefined;
|
|
285
|
+
rootOp?: string | undefined;
|
|
286
|
+
rootName?: string | undefined;
|
|
287
|
+
durationMs: number;
|
|
288
|
+
spanCount: number;
|
|
289
|
+
errorCount: number;
|
|
290
|
+
performanceIssueCount: number;
|
|
291
|
+
projects: string[];
|
|
292
|
+
spans: {
|
|
293
|
+
op?: string | undefined;
|
|
294
|
+
name: string;
|
|
295
|
+
startMs: number;
|
|
296
|
+
durationMs: number;
|
|
297
|
+
issue?: boolean | undefined;
|
|
298
|
+
}[];
|
|
219
299
|
} | {
|
|
220
300
|
type: "person";
|
|
221
301
|
summary?: string | undefined;
|
|
@@ -238,5 +318,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
238
318
|
repo: string;
|
|
239
319
|
comment_id: number;
|
|
240
320
|
status: "addressed" | "declined";
|
|
321
|
+
}, {
|
|
322
|
+
egress: PluginEgress;
|
|
241
323
|
}>;
|
|
242
324
|
export {};
|