@sentry/junior-github 0.256.0 → 0.258.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/SETUP.md +5 -0
- package/dist/{chunk-D75O3CY3.js → chunk-XN3WOI7O.js} +25 -3
- package/dist/credential-support.d.ts +7 -0
- package/dist/db/schema.d.ts +19 -19
- package/dist/events/pull-request.d.ts +1 -1
- package/dist/index.js +31 -8
- package/dist/pull-request-outcomes/store.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/tool-support/attribution.d.ts +5 -1
- package/dist/tools/clone-repository.d.ts +8 -8
- package/dist/tools/create-issue.d.ts +11 -11
- package/dist/tools/create-pull-request.d.ts +12 -12
- package/dist/tools/get-deployment.d.ts +38 -38
- package/dist/tools/get-pull-request.d.ts +24 -24
- package/dist/tools/get-release.d.ts +28 -28
- package/dist/tools/get-repository.d.ts +17 -17
- package/dist/tools/resolve-pull-request-review-thread.d.ts +11 -11
- package/dist/tools/submit-pull-request-review.d.ts +12 -12
- package/dist/tools/update-issue.d.ts +21 -17
- package/dist/tools/update-pull-request-feedback.d.ts +12 -12
- package/dist/tools/update-pull-request.d.ts +25 -21
- package/package.json +3 -3
|
@@ -10,35 +10,11 @@ export declare function createGitHubGetDeploymentTool(ctx: {
|
|
|
10
10
|
commitSha: string;
|
|
11
11
|
environment?: string | undefined;
|
|
12
12
|
}, {
|
|
13
|
-
commitSha: string;
|
|
14
|
-
deployment: {
|
|
15
|
-
createdAt: string;
|
|
16
|
-
creator: string | null;
|
|
17
|
-
description: string | null;
|
|
18
|
-
environment: string;
|
|
19
|
-
id: number;
|
|
20
|
-
latestStatus: {
|
|
21
|
-
createdAt: string;
|
|
22
|
-
creator: string | null;
|
|
23
|
-
description: string | null;
|
|
24
|
-
environmentUrl: string | null;
|
|
25
|
-
id: number;
|
|
26
|
-
logUrl: string | null;
|
|
27
|
-
state: string;
|
|
28
|
-
} | null;
|
|
29
|
-
ref: string;
|
|
30
|
-
sha: string;
|
|
31
|
-
updatedAt: string;
|
|
32
|
-
url: string;
|
|
33
|
-
} | null;
|
|
34
|
-
environment: string | null;
|
|
35
|
-
repo: string;
|
|
36
|
-
target: "getDeployment";
|
|
37
13
|
objectAnnotations?: {
|
|
38
14
|
kind: "object";
|
|
39
15
|
key: string;
|
|
40
16
|
label: string;
|
|
41
|
-
objectType: "
|
|
17
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
42
18
|
title: string;
|
|
43
19
|
url: string | null;
|
|
44
20
|
description?: string | undefined;
|
|
@@ -53,7 +29,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
|
|
|
53
29
|
sourceBranch?: string | undefined;
|
|
54
30
|
targetBranch?: string | undefined;
|
|
55
31
|
reviewers?: string[] | undefined;
|
|
56
|
-
review?: "
|
|
32
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
57
33
|
checks?: {
|
|
58
34
|
passed: number;
|
|
59
35
|
failed: number;
|
|
@@ -88,15 +64,6 @@ export declare function createGitHubGetDeploymentTool(ctx: {
|
|
|
88
64
|
arguments: Record<string, unknown>;
|
|
89
65
|
reason?: string | undefined;
|
|
90
66
|
} | undefined;
|
|
91
|
-
subscribable?: {
|
|
92
|
-
identifier: string;
|
|
93
|
-
label: string;
|
|
94
|
-
namespace: string;
|
|
95
|
-
supportedEvents: string[];
|
|
96
|
-
type: string;
|
|
97
|
-
suggestedEvents?: string[] | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
}, {
|
|
100
67
|
commitSha: string;
|
|
101
68
|
deployment: {
|
|
102
69
|
createdAt: string;
|
|
@@ -120,12 +87,21 @@ export declare function createGitHubGetDeploymentTool(ctx: {
|
|
|
120
87
|
} | null;
|
|
121
88
|
environment: string | null;
|
|
122
89
|
repo: string;
|
|
90
|
+
subscribable?: {
|
|
91
|
+
identifier: string;
|
|
92
|
+
label: string;
|
|
93
|
+
namespace: string;
|
|
94
|
+
suggestedEvents?: string[] | undefined;
|
|
95
|
+
supportedEvents: string[];
|
|
96
|
+
type: string;
|
|
97
|
+
} | undefined;
|
|
123
98
|
target: "getDeployment";
|
|
99
|
+
}, {
|
|
124
100
|
objectAnnotations?: {
|
|
125
101
|
kind: "object";
|
|
126
102
|
key: string;
|
|
127
103
|
label: string;
|
|
128
|
-
objectType: "
|
|
104
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
129
105
|
title: string;
|
|
130
106
|
url: string | null;
|
|
131
107
|
description?: string | undefined;
|
|
@@ -140,7 +116,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
|
|
|
140
116
|
sourceBranch?: string | undefined;
|
|
141
117
|
targetBranch?: string | undefined;
|
|
142
118
|
reviewers?: string[] | undefined;
|
|
143
|
-
review?: "
|
|
119
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
144
120
|
checks?: {
|
|
145
121
|
passed: number;
|
|
146
122
|
failed: number;
|
|
@@ -175,12 +151,36 @@ export declare function createGitHubGetDeploymentTool(ctx: {
|
|
|
175
151
|
arguments: Record<string, unknown>;
|
|
176
152
|
reason?: string | undefined;
|
|
177
153
|
} | undefined;
|
|
154
|
+
commitSha: string;
|
|
155
|
+
deployment: {
|
|
156
|
+
createdAt: string;
|
|
157
|
+
creator: string | null;
|
|
158
|
+
description: string | null;
|
|
159
|
+
environment: string;
|
|
160
|
+
id: number;
|
|
161
|
+
latestStatus: {
|
|
162
|
+
createdAt: string;
|
|
163
|
+
creator: string | null;
|
|
164
|
+
description: string | null;
|
|
165
|
+
environmentUrl: string | null;
|
|
166
|
+
id: number;
|
|
167
|
+
logUrl: string | null;
|
|
168
|
+
state: string;
|
|
169
|
+
} | null;
|
|
170
|
+
ref: string;
|
|
171
|
+
sha: string;
|
|
172
|
+
updatedAt: string;
|
|
173
|
+
url: string;
|
|
174
|
+
} | null;
|
|
175
|
+
environment: string | null;
|
|
176
|
+
repo: string;
|
|
178
177
|
subscribable?: {
|
|
179
178
|
identifier: string;
|
|
180
179
|
label: string;
|
|
181
180
|
namespace: string;
|
|
181
|
+
suggestedEvents?: string[] | undefined;
|
|
182
182
|
supportedEvents: string[];
|
|
183
183
|
type: string;
|
|
184
|
-
suggestedEvents?: string[] | undefined;
|
|
185
184
|
} | undefined;
|
|
185
|
+
target: "getDeployment";
|
|
186
186
|
}>;
|
|
@@ -9,21 +9,11 @@ export declare function createGitHubGetPullRequestTool(ctx: {
|
|
|
9
9
|
repo: string;
|
|
10
10
|
number: number;
|
|
11
11
|
}, {
|
|
12
|
-
base: string;
|
|
13
|
-
draft: boolean;
|
|
14
|
-
head: string;
|
|
15
|
-
headSha: string;
|
|
16
|
-
merged: boolean;
|
|
17
|
-
number: number;
|
|
18
|
-
state: string;
|
|
19
|
-
title: string;
|
|
20
|
-
url: string;
|
|
21
|
-
target: "getPullRequest";
|
|
22
12
|
objectAnnotations?: {
|
|
23
13
|
kind: "object";
|
|
24
14
|
key: string;
|
|
25
15
|
label: string;
|
|
26
|
-
objectType: "
|
|
16
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
27
17
|
title: string;
|
|
28
18
|
url: string | null;
|
|
29
19
|
description?: string | undefined;
|
|
@@ -38,7 +28,7 @@ export declare function createGitHubGetPullRequestTool(ctx: {
|
|
|
38
28
|
sourceBranch?: string | undefined;
|
|
39
29
|
targetBranch?: string | undefined;
|
|
40
30
|
reviewers?: string[] | undefined;
|
|
41
|
-
review?: "
|
|
31
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
42
32
|
checks?: {
|
|
43
33
|
passed: number;
|
|
44
34
|
failed: number;
|
|
@@ -73,15 +63,6 @@ export declare function createGitHubGetPullRequestTool(ctx: {
|
|
|
73
63
|
arguments: Record<string, unknown>;
|
|
74
64
|
reason?: string | undefined;
|
|
75
65
|
} | undefined;
|
|
76
|
-
subscribable?: {
|
|
77
|
-
identifier: string;
|
|
78
|
-
label: string;
|
|
79
|
-
namespace: string;
|
|
80
|
-
supportedEvents: string[];
|
|
81
|
-
type: string;
|
|
82
|
-
suggestedEvents?: string[] | undefined;
|
|
83
|
-
} | undefined;
|
|
84
|
-
}, {
|
|
85
66
|
base: string;
|
|
86
67
|
draft: boolean;
|
|
87
68
|
head: string;
|
|
@@ -89,14 +70,23 @@ export declare function createGitHubGetPullRequestTool(ctx: {
|
|
|
89
70
|
merged: boolean;
|
|
90
71
|
number: number;
|
|
91
72
|
state: string;
|
|
73
|
+
subscribable?: {
|
|
74
|
+
identifier: string;
|
|
75
|
+
label: string;
|
|
76
|
+
namespace: string;
|
|
77
|
+
suggestedEvents?: string[] | undefined;
|
|
78
|
+
supportedEvents: string[];
|
|
79
|
+
type: string;
|
|
80
|
+
} | undefined;
|
|
92
81
|
title: string;
|
|
93
82
|
url: string;
|
|
94
83
|
target: "getPullRequest";
|
|
84
|
+
}, {
|
|
95
85
|
objectAnnotations?: {
|
|
96
86
|
kind: "object";
|
|
97
87
|
key: string;
|
|
98
88
|
label: string;
|
|
99
|
-
objectType: "
|
|
89
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
100
90
|
title: string;
|
|
101
91
|
url: string | null;
|
|
102
92
|
description?: string | undefined;
|
|
@@ -111,7 +101,7 @@ export declare function createGitHubGetPullRequestTool(ctx: {
|
|
|
111
101
|
sourceBranch?: string | undefined;
|
|
112
102
|
targetBranch?: string | undefined;
|
|
113
103
|
reviewers?: string[] | undefined;
|
|
114
|
-
review?: "
|
|
104
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
115
105
|
checks?: {
|
|
116
106
|
passed: number;
|
|
117
107
|
failed: number;
|
|
@@ -146,12 +136,22 @@ export declare function createGitHubGetPullRequestTool(ctx: {
|
|
|
146
136
|
arguments: Record<string, unknown>;
|
|
147
137
|
reason?: string | undefined;
|
|
148
138
|
} | undefined;
|
|
139
|
+
base: string;
|
|
140
|
+
draft: boolean;
|
|
141
|
+
head: string;
|
|
142
|
+
headSha: string;
|
|
143
|
+
merged: boolean;
|
|
144
|
+
number: number;
|
|
145
|
+
state: string;
|
|
149
146
|
subscribable?: {
|
|
150
147
|
identifier: string;
|
|
151
148
|
label: string;
|
|
152
149
|
namespace: string;
|
|
150
|
+
suggestedEvents?: string[] | undefined;
|
|
153
151
|
supportedEvents: string[];
|
|
154
152
|
type: string;
|
|
155
|
-
suggestedEvents?: string[] | undefined;
|
|
156
153
|
} | undefined;
|
|
154
|
+
title: string;
|
|
155
|
+
url: string;
|
|
156
|
+
target: "getPullRequest";
|
|
157
157
|
}>;
|
|
@@ -9,25 +9,11 @@ export declare function createGitHubGetReleaseTool(ctx: {
|
|
|
9
9
|
repo: string;
|
|
10
10
|
tag?: string | undefined;
|
|
11
11
|
}, {
|
|
12
|
-
release: {
|
|
13
|
-
createdAt: string;
|
|
14
|
-
draft: boolean;
|
|
15
|
-
htmlUrl: string;
|
|
16
|
-
id: number;
|
|
17
|
-
name: string | null;
|
|
18
|
-
prerelease: boolean;
|
|
19
|
-
publishedAt: string | null;
|
|
20
|
-
tagName: string;
|
|
21
|
-
targetCommitish: string;
|
|
22
|
-
} | null;
|
|
23
|
-
repo: string;
|
|
24
|
-
tag: string | null;
|
|
25
|
-
target: "getRelease";
|
|
26
12
|
objectAnnotations?: {
|
|
27
13
|
kind: "object";
|
|
28
14
|
key: string;
|
|
29
15
|
label: string;
|
|
30
|
-
objectType: "
|
|
16
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
31
17
|
title: string;
|
|
32
18
|
url: string | null;
|
|
33
19
|
description?: string | undefined;
|
|
@@ -42,7 +28,7 @@ export declare function createGitHubGetReleaseTool(ctx: {
|
|
|
42
28
|
sourceBranch?: string | undefined;
|
|
43
29
|
targetBranch?: string | undefined;
|
|
44
30
|
reviewers?: string[] | undefined;
|
|
45
|
-
review?: "
|
|
31
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
46
32
|
checks?: {
|
|
47
33
|
passed: number;
|
|
48
34
|
failed: number;
|
|
@@ -77,15 +63,6 @@ export declare function createGitHubGetReleaseTool(ctx: {
|
|
|
77
63
|
arguments: Record<string, unknown>;
|
|
78
64
|
reason?: string | undefined;
|
|
79
65
|
} | undefined;
|
|
80
|
-
subscribable?: {
|
|
81
|
-
identifier: string;
|
|
82
|
-
label: string;
|
|
83
|
-
namespace: string;
|
|
84
|
-
supportedEvents: string[];
|
|
85
|
-
type: string;
|
|
86
|
-
suggestedEvents?: string[] | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
}, {
|
|
89
66
|
release: {
|
|
90
67
|
createdAt: string;
|
|
91
68
|
draft: boolean;
|
|
@@ -98,13 +75,22 @@ export declare function createGitHubGetReleaseTool(ctx: {
|
|
|
98
75
|
targetCommitish: string;
|
|
99
76
|
} | null;
|
|
100
77
|
repo: string;
|
|
78
|
+
subscribable?: {
|
|
79
|
+
identifier: string;
|
|
80
|
+
label: string;
|
|
81
|
+
namespace: string;
|
|
82
|
+
suggestedEvents?: string[] | undefined;
|
|
83
|
+
supportedEvents: string[];
|
|
84
|
+
type: string;
|
|
85
|
+
} | undefined;
|
|
101
86
|
tag: string | null;
|
|
102
87
|
target: "getRelease";
|
|
88
|
+
}, {
|
|
103
89
|
objectAnnotations?: {
|
|
104
90
|
kind: "object";
|
|
105
91
|
key: string;
|
|
106
92
|
label: string;
|
|
107
|
-
objectType: "
|
|
93
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
108
94
|
title: string;
|
|
109
95
|
url: string | null;
|
|
110
96
|
description?: string | undefined;
|
|
@@ -119,7 +105,7 @@ export declare function createGitHubGetReleaseTool(ctx: {
|
|
|
119
105
|
sourceBranch?: string | undefined;
|
|
120
106
|
targetBranch?: string | undefined;
|
|
121
107
|
reviewers?: string[] | undefined;
|
|
122
|
-
review?: "
|
|
108
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
123
109
|
checks?: {
|
|
124
110
|
passed: number;
|
|
125
111
|
failed: number;
|
|
@@ -154,12 +140,26 @@ export declare function createGitHubGetReleaseTool(ctx: {
|
|
|
154
140
|
arguments: Record<string, unknown>;
|
|
155
141
|
reason?: string | undefined;
|
|
156
142
|
} | undefined;
|
|
143
|
+
release: {
|
|
144
|
+
createdAt: string;
|
|
145
|
+
draft: boolean;
|
|
146
|
+
htmlUrl: string;
|
|
147
|
+
id: number;
|
|
148
|
+
name: string | null;
|
|
149
|
+
prerelease: boolean;
|
|
150
|
+
publishedAt: string | null;
|
|
151
|
+
tagName: string;
|
|
152
|
+
targetCommitish: string;
|
|
153
|
+
} | null;
|
|
154
|
+
repo: string;
|
|
157
155
|
subscribable?: {
|
|
158
156
|
identifier: string;
|
|
159
157
|
label: string;
|
|
160
158
|
namespace: string;
|
|
159
|
+
suggestedEvents?: string[] | undefined;
|
|
161
160
|
supportedEvents: string[];
|
|
162
161
|
type: string;
|
|
163
|
-
suggestedEvents?: string[] | undefined;
|
|
164
162
|
} | undefined;
|
|
163
|
+
tag: string | null;
|
|
164
|
+
target: "getRelease";
|
|
165
165
|
}>;
|
|
@@ -8,17 +8,11 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
8
8
|
}): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
9
9
|
repo: string;
|
|
10
10
|
}, {
|
|
11
|
-
defaultBranch: string;
|
|
12
|
-
description: string | null;
|
|
13
|
-
fullName: string;
|
|
14
|
-
private: boolean;
|
|
15
|
-
url: string;
|
|
16
|
-
target: "getRepository";
|
|
17
11
|
objectAnnotations?: {
|
|
18
12
|
kind: "object";
|
|
19
13
|
key: string;
|
|
20
14
|
label: string;
|
|
21
|
-
objectType: "
|
|
15
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
22
16
|
title: string;
|
|
23
17
|
url: string | null;
|
|
24
18
|
description?: string | undefined;
|
|
@@ -33,7 +27,7 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
33
27
|
sourceBranch?: string | undefined;
|
|
34
28
|
targetBranch?: string | undefined;
|
|
35
29
|
reviewers?: string[] | undefined;
|
|
36
|
-
review?: "
|
|
30
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
37
31
|
checks?: {
|
|
38
32
|
passed: number;
|
|
39
33
|
failed: number;
|
|
@@ -68,26 +62,26 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
68
62
|
arguments: Record<string, unknown>;
|
|
69
63
|
reason?: string | undefined;
|
|
70
64
|
} | undefined;
|
|
65
|
+
defaultBranch: string;
|
|
66
|
+
description: string | null;
|
|
67
|
+
fullName: string;
|
|
68
|
+
private: boolean;
|
|
71
69
|
subscribable?: {
|
|
72
70
|
identifier: string;
|
|
73
71
|
label: string;
|
|
74
72
|
namespace: string;
|
|
73
|
+
suggestedEvents?: string[] | undefined;
|
|
75
74
|
supportedEvents: string[];
|
|
76
75
|
type: string;
|
|
77
|
-
suggestedEvents?: string[] | undefined;
|
|
78
76
|
} | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
defaultBranch: string;
|
|
81
|
-
description: string | null;
|
|
82
|
-
fullName: string;
|
|
83
|
-
private: boolean;
|
|
84
77
|
url: string;
|
|
85
78
|
target: "getRepository";
|
|
79
|
+
}, {
|
|
86
80
|
objectAnnotations?: {
|
|
87
81
|
kind: "object";
|
|
88
82
|
key: string;
|
|
89
83
|
label: string;
|
|
90
|
-
objectType: "
|
|
84
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
91
85
|
title: string;
|
|
92
86
|
url: string | null;
|
|
93
87
|
description?: string | undefined;
|
|
@@ -102,7 +96,7 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
102
96
|
sourceBranch?: string | undefined;
|
|
103
97
|
targetBranch?: string | undefined;
|
|
104
98
|
reviewers?: string[] | undefined;
|
|
105
|
-
review?: "
|
|
99
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
106
100
|
checks?: {
|
|
107
101
|
passed: number;
|
|
108
102
|
failed: number;
|
|
@@ -137,12 +131,18 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
137
131
|
arguments: Record<string, unknown>;
|
|
138
132
|
reason?: string | undefined;
|
|
139
133
|
} | undefined;
|
|
134
|
+
defaultBranch: string;
|
|
135
|
+
description: string | null;
|
|
136
|
+
fullName: string;
|
|
137
|
+
private: boolean;
|
|
140
138
|
subscribable?: {
|
|
141
139
|
identifier: string;
|
|
142
140
|
label: string;
|
|
143
141
|
namespace: string;
|
|
142
|
+
suggestedEvents?: string[] | undefined;
|
|
144
143
|
supportedEvents: string[];
|
|
145
144
|
type: string;
|
|
146
|
-
suggestedEvents?: string[] | undefined;
|
|
147
145
|
} | undefined;
|
|
146
|
+
url: string;
|
|
147
|
+
target: "getRepository";
|
|
148
148
|
}>;
|
|
@@ -7,16 +7,11 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
7
7
|
threadId: string;
|
|
8
8
|
}, {
|
|
9
9
|
[x: string]: unknown;
|
|
10
|
-
target: "resolvePullRequestReviewThread";
|
|
11
|
-
repo: string;
|
|
12
|
-
number: number;
|
|
13
|
-
threadId: string;
|
|
14
|
-
resolved: boolean;
|
|
15
10
|
objectAnnotations?: {
|
|
16
11
|
kind: "object";
|
|
17
12
|
key: string;
|
|
18
13
|
label: string;
|
|
19
|
-
objectType: "
|
|
14
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
20
15
|
title: string;
|
|
21
16
|
url: string | null;
|
|
22
17
|
description?: string | undefined;
|
|
@@ -31,7 +26,7 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
31
26
|
sourceBranch?: string | undefined;
|
|
32
27
|
targetBranch?: string | undefined;
|
|
33
28
|
reviewers?: string[] | undefined;
|
|
34
|
-
review?: "
|
|
29
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
35
30
|
checks?: {
|
|
36
31
|
passed: number;
|
|
37
32
|
failed: number;
|
|
@@ -66,18 +61,18 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
66
61
|
arguments: Record<string, unknown>;
|
|
67
62
|
reason?: string | undefined;
|
|
68
63
|
} | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
[x: string]: unknown;
|
|
71
64
|
target: "resolvePullRequestReviewThread";
|
|
72
65
|
repo: string;
|
|
73
66
|
number: number;
|
|
74
67
|
threadId: string;
|
|
75
68
|
resolved: boolean;
|
|
69
|
+
}, {
|
|
70
|
+
[x: string]: unknown;
|
|
76
71
|
objectAnnotations?: {
|
|
77
72
|
kind: "object";
|
|
78
73
|
key: string;
|
|
79
74
|
label: string;
|
|
80
|
-
objectType: "
|
|
75
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
81
76
|
title: string;
|
|
82
77
|
url: string | null;
|
|
83
78
|
description?: string | undefined;
|
|
@@ -92,7 +87,7 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
92
87
|
sourceBranch?: string | undefined;
|
|
93
88
|
targetBranch?: string | undefined;
|
|
94
89
|
reviewers?: string[] | undefined;
|
|
95
|
-
review?: "
|
|
90
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
96
91
|
checks?: {
|
|
97
92
|
passed: number;
|
|
98
93
|
failed: number;
|
|
@@ -127,4 +122,9 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
127
122
|
arguments: Record<string, unknown>;
|
|
128
123
|
reason?: string | undefined;
|
|
129
124
|
} | undefined;
|
|
125
|
+
target: "resolvePullRequestReviewThread";
|
|
126
|
+
repo: string;
|
|
127
|
+
number: number;
|
|
128
|
+
threadId: string;
|
|
129
|
+
resolved: boolean;
|
|
130
130
|
}>;
|
|
@@ -15,17 +15,11 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
15
15
|
}[] | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
[x: string]: unknown;
|
|
18
|
-
target: "submitPullRequestReview";
|
|
19
|
-
repo: string;
|
|
20
|
-
number: number;
|
|
21
|
-
reviewId: number;
|
|
22
|
-
state: string;
|
|
23
|
-
url: string;
|
|
24
18
|
objectAnnotations?: {
|
|
25
19
|
kind: "object";
|
|
26
20
|
key: string;
|
|
27
21
|
label: string;
|
|
28
|
-
objectType: "
|
|
22
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
29
23
|
title: string;
|
|
30
24
|
url: string | null;
|
|
31
25
|
description?: string | undefined;
|
|
@@ -40,7 +34,7 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
40
34
|
sourceBranch?: string | undefined;
|
|
41
35
|
targetBranch?: string | undefined;
|
|
42
36
|
reviewers?: string[] | undefined;
|
|
43
|
-
review?: "
|
|
37
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
44
38
|
checks?: {
|
|
45
39
|
passed: number;
|
|
46
40
|
failed: number;
|
|
@@ -75,19 +69,19 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
75
69
|
arguments: Record<string, unknown>;
|
|
76
70
|
reason?: string | undefined;
|
|
77
71
|
} | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
[x: string]: unknown;
|
|
80
72
|
target: "submitPullRequestReview";
|
|
81
73
|
repo: string;
|
|
82
74
|
number: number;
|
|
83
75
|
reviewId: number;
|
|
84
76
|
state: string;
|
|
85
77
|
url: string;
|
|
78
|
+
}, {
|
|
79
|
+
[x: string]: unknown;
|
|
86
80
|
objectAnnotations?: {
|
|
87
81
|
kind: "object";
|
|
88
82
|
key: string;
|
|
89
83
|
label: string;
|
|
90
|
-
objectType: "
|
|
84
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
91
85
|
title: string;
|
|
92
86
|
url: string | null;
|
|
93
87
|
description?: string | undefined;
|
|
@@ -102,7 +96,7 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
102
96
|
sourceBranch?: string | undefined;
|
|
103
97
|
targetBranch?: string | undefined;
|
|
104
98
|
reviewers?: string[] | undefined;
|
|
105
|
-
review?: "
|
|
99
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
106
100
|
checks?: {
|
|
107
101
|
passed: number;
|
|
108
102
|
failed: number;
|
|
@@ -137,4 +131,10 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
137
131
|
arguments: Record<string, unknown>;
|
|
138
132
|
reason?: string | undefined;
|
|
139
133
|
} | undefined;
|
|
134
|
+
target: "submitPullRequestReview";
|
|
135
|
+
repo: string;
|
|
136
|
+
number: number;
|
|
137
|
+
reviewId: number;
|
|
138
|
+
state: string;
|
|
139
|
+
url: string;
|
|
140
140
|
}>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { type Identity, type User, type Actor, type PluginLogger, type PluginEgress } from "@sentry/junior-plugin-api";
|
|
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
3
|
export declare function createGitHubUpdateIssueTool(ctx: {
|
|
4
4
|
actor?: Actor;
|
|
5
|
+
automationLink?: {
|
|
6
|
+
url: string;
|
|
7
|
+
};
|
|
5
8
|
conversationId?: string;
|
|
6
9
|
egress: PluginEgress;
|
|
7
10
|
log: PluginLogger;
|
|
@@ -13,6 +16,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
13
16
|
url?: string;
|
|
14
17
|
};
|
|
15
18
|
};
|
|
19
|
+
source?: Source;
|
|
16
20
|
users: {
|
|
17
21
|
resolveActor(): Promise<{
|
|
18
22
|
identity?: Identity;
|
|
@@ -26,17 +30,11 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
26
30
|
body?: string | undefined;
|
|
27
31
|
state?: "closed" | "open" | undefined;
|
|
28
32
|
}, {
|
|
29
|
-
body: string | null;
|
|
30
|
-
number: number;
|
|
31
|
-
state: string;
|
|
32
|
-
title: string;
|
|
33
|
-
url: string;
|
|
34
|
-
target: "updateIssue";
|
|
35
33
|
objectAnnotations?: {
|
|
36
34
|
kind: "object";
|
|
37
35
|
key: string;
|
|
38
36
|
label: string;
|
|
39
|
-
objectType: "
|
|
37
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
40
38
|
title: string;
|
|
41
39
|
url: string | null;
|
|
42
40
|
description?: string | undefined;
|
|
@@ -51,7 +49,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
51
49
|
sourceBranch?: string | undefined;
|
|
52
50
|
targetBranch?: string | undefined;
|
|
53
51
|
reviewers?: string[] | undefined;
|
|
54
|
-
review?: "
|
|
52
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
55
53
|
checks?: {
|
|
56
54
|
passed: number;
|
|
57
55
|
failed: number;
|
|
@@ -86,26 +84,26 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
86
84
|
arguments: Record<string, unknown>;
|
|
87
85
|
reason?: string | undefined;
|
|
88
86
|
} | undefined;
|
|
87
|
+
body: string | null;
|
|
88
|
+
number: number;
|
|
89
|
+
state: string;
|
|
89
90
|
subscribable?: {
|
|
90
91
|
identifier: string;
|
|
91
92
|
label: string;
|
|
92
93
|
namespace: string;
|
|
94
|
+
suggestedEvents?: string[] | undefined;
|
|
93
95
|
supportedEvents: string[];
|
|
94
96
|
type: string;
|
|
95
|
-
suggestedEvents?: string[] | undefined;
|
|
96
97
|
} | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
body: string | null;
|
|
99
|
-
number: number;
|
|
100
|
-
state: string;
|
|
101
98
|
title: string;
|
|
102
99
|
url: string;
|
|
103
100
|
target: "updateIssue";
|
|
101
|
+
}, {
|
|
104
102
|
objectAnnotations?: {
|
|
105
103
|
kind: "object";
|
|
106
104
|
key: string;
|
|
107
105
|
label: string;
|
|
108
|
-
objectType: "
|
|
106
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
109
107
|
title: string;
|
|
110
108
|
url: string | null;
|
|
111
109
|
description?: string | undefined;
|
|
@@ -120,7 +118,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
120
118
|
sourceBranch?: string | undefined;
|
|
121
119
|
targetBranch?: string | undefined;
|
|
122
120
|
reviewers?: string[] | undefined;
|
|
123
|
-
review?: "
|
|
121
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
124
122
|
checks?: {
|
|
125
123
|
passed: number;
|
|
126
124
|
failed: number;
|
|
@@ -155,12 +153,18 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
155
153
|
arguments: Record<string, unknown>;
|
|
156
154
|
reason?: string | undefined;
|
|
157
155
|
} | undefined;
|
|
156
|
+
body: string | null;
|
|
157
|
+
number: number;
|
|
158
|
+
state: string;
|
|
158
159
|
subscribable?: {
|
|
159
160
|
identifier: string;
|
|
160
161
|
label: string;
|
|
161
162
|
namespace: string;
|
|
163
|
+
suggestedEvents?: string[] | undefined;
|
|
162
164
|
supportedEvents: string[];
|
|
163
165
|
type: string;
|
|
164
|
-
suggestedEvents?: string[] | undefined;
|
|
165
166
|
} | undefined;
|
|
167
|
+
title: string;
|
|
168
|
+
url: string;
|
|
169
|
+
target: "updateIssue";
|
|
166
170
|
}>;
|