@sentry/junior-github 0.257.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/dist/{chunk-JF4WIM23.js → chunk-XN3WOI7O.js} +5 -3
- package/dist/db/schema.d.ts +19 -19
- package/dist/events/pull-request.d.ts +1 -1
- package/dist/index.js +18 -7
- 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
|
@@ -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
|
}>;
|
|
@@ -28,21 +28,16 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
28
28
|
egress: PluginEgress;
|
|
29
29
|
}, botEmail: string | undefined): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
30
30
|
repo: string;
|
|
31
|
-
commentKind: "
|
|
31
|
+
commentKind: "conversation" | "review";
|
|
32
32
|
commentId: number;
|
|
33
33
|
status: "addressed" | "declined";
|
|
34
34
|
}, {
|
|
35
35
|
[x: string]: unknown;
|
|
36
|
-
target: "updatePullRequestFeedback";
|
|
37
|
-
repo: string;
|
|
38
|
-
commentId: number;
|
|
39
|
-
status: "addressed" | "declined";
|
|
40
|
-
reactionId: number;
|
|
41
36
|
objectAnnotations?: {
|
|
42
37
|
kind: "object";
|
|
43
38
|
key: string;
|
|
44
39
|
label: string;
|
|
45
|
-
objectType: "
|
|
40
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
46
41
|
title: string;
|
|
47
42
|
url: string | null;
|
|
48
43
|
description?: string | undefined;
|
|
@@ -57,7 +52,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
57
52
|
sourceBranch?: string | undefined;
|
|
58
53
|
targetBranch?: string | undefined;
|
|
59
54
|
reviewers?: string[] | undefined;
|
|
60
|
-
review?: "
|
|
55
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
61
56
|
checks?: {
|
|
62
57
|
passed: number;
|
|
63
58
|
failed: number;
|
|
@@ -92,18 +87,18 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
92
87
|
arguments: Record<string, unknown>;
|
|
93
88
|
reason?: string | undefined;
|
|
94
89
|
} | undefined;
|
|
95
|
-
}, {
|
|
96
|
-
[x: string]: unknown;
|
|
97
90
|
target: "updatePullRequestFeedback";
|
|
98
91
|
repo: string;
|
|
99
92
|
commentId: number;
|
|
100
93
|
status: "addressed" | "declined";
|
|
101
94
|
reactionId: number;
|
|
95
|
+
}, {
|
|
96
|
+
[x: string]: unknown;
|
|
102
97
|
objectAnnotations?: {
|
|
103
98
|
kind: "object";
|
|
104
99
|
key: string;
|
|
105
100
|
label: string;
|
|
106
|
-
objectType: "
|
|
101
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
107
102
|
title: string;
|
|
108
103
|
url: string | null;
|
|
109
104
|
description?: string | undefined;
|
|
@@ -118,7 +113,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
118
113
|
sourceBranch?: string | undefined;
|
|
119
114
|
targetBranch?: string | undefined;
|
|
120
115
|
reviewers?: string[] | undefined;
|
|
121
|
-
review?: "
|
|
116
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
122
117
|
checks?: {
|
|
123
118
|
passed: number;
|
|
124
119
|
failed: number;
|
|
@@ -153,5 +148,10 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
153
148
|
arguments: Record<string, unknown>;
|
|
154
149
|
reason?: string | undefined;
|
|
155
150
|
} | undefined;
|
|
151
|
+
target: "updatePullRequestFeedback";
|
|
152
|
+
repo: string;
|
|
153
|
+
commentId: number;
|
|
154
|
+
status: "addressed" | "declined";
|
|
155
|
+
reactionId: number;
|
|
156
156
|
}>;
|
|
157
157
|
export {};
|