@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
|
@@ -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 {};
|
|
@@ -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 PR metadata while preserving runtime-owned body attribution. */
|
|
3
3
|
export declare function createGitHubUpdatePullRequestTool(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 createGitHubUpdatePullRequestTool(ctx: {
|
|
|
13
16
|
url?: string;
|
|
14
17
|
};
|
|
15
18
|
};
|
|
19
|
+
source?: Source;
|
|
16
20
|
users: {
|
|
17
21
|
resolveActor(): Promise<{
|
|
18
22
|
identity?: Identity;
|
|
@@ -28,19 +32,11 @@ export declare function createGitHubUpdatePullRequestTool(ctx: {
|
|
|
28
32
|
state?: "closed" | "open" | undefined;
|
|
29
33
|
draft?: boolean | undefined;
|
|
30
34
|
}, {
|
|
31
|
-
base: string;
|
|
32
|
-
body: string | null;
|
|
33
|
-
draft: boolean;
|
|
34
|
-
number: number;
|
|
35
|
-
state: string;
|
|
36
|
-
title: string;
|
|
37
|
-
url: string;
|
|
38
|
-
target: "updatePullRequest";
|
|
39
35
|
objectAnnotations?: {
|
|
40
36
|
kind: "object";
|
|
41
37
|
key: string;
|
|
42
38
|
label: string;
|
|
43
|
-
objectType: "
|
|
39
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
44
40
|
title: string;
|
|
45
41
|
url: string | null;
|
|
46
42
|
description?: string | undefined;
|
|
@@ -55,7 +51,7 @@ export declare function createGitHubUpdatePullRequestTool(ctx: {
|
|
|
55
51
|
sourceBranch?: string | undefined;
|
|
56
52
|
targetBranch?: string | undefined;
|
|
57
53
|
reviewers?: string[] | undefined;
|
|
58
|
-
review?: "
|
|
54
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
59
55
|
checks?: {
|
|
60
56
|
passed: number;
|
|
61
57
|
failed: number;
|
|
@@ -90,28 +86,28 @@ export declare function createGitHubUpdatePullRequestTool(ctx: {
|
|
|
90
86
|
arguments: Record<string, unknown>;
|
|
91
87
|
reason?: string | undefined;
|
|
92
88
|
} | undefined;
|
|
89
|
+
base: string;
|
|
90
|
+
body: string | null;
|
|
91
|
+
draft: boolean;
|
|
92
|
+
number: number;
|
|
93
|
+
state: string;
|
|
93
94
|
subscribable?: {
|
|
94
95
|
identifier: string;
|
|
95
96
|
label: string;
|
|
96
97
|
namespace: string;
|
|
98
|
+
suggestedEvents?: string[] | undefined;
|
|
97
99
|
supportedEvents: string[];
|
|
98
100
|
type: string;
|
|
99
|
-
suggestedEvents?: string[] | undefined;
|
|
100
101
|
} | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
base: string;
|
|
103
|
-
body: string | null;
|
|
104
|
-
draft: boolean;
|
|
105
|
-
number: number;
|
|
106
|
-
state: string;
|
|
107
102
|
title: string;
|
|
108
103
|
url: string;
|
|
109
104
|
target: "updatePullRequest";
|
|
105
|
+
}, {
|
|
110
106
|
objectAnnotations?: {
|
|
111
107
|
kind: "object";
|
|
112
108
|
key: string;
|
|
113
109
|
label: string;
|
|
114
|
-
objectType: "
|
|
110
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
115
111
|
title: string;
|
|
116
112
|
url: string | null;
|
|
117
113
|
description?: string | undefined;
|
|
@@ -126,7 +122,7 @@ export declare function createGitHubUpdatePullRequestTool(ctx: {
|
|
|
126
122
|
sourceBranch?: string | undefined;
|
|
127
123
|
targetBranch?: string | undefined;
|
|
128
124
|
reviewers?: string[] | undefined;
|
|
129
|
-
review?: "
|
|
125
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
130
126
|
checks?: {
|
|
131
127
|
passed: number;
|
|
132
128
|
failed: number;
|
|
@@ -161,12 +157,20 @@ export declare function createGitHubUpdatePullRequestTool(ctx: {
|
|
|
161
157
|
arguments: Record<string, unknown>;
|
|
162
158
|
reason?: string | undefined;
|
|
163
159
|
} | undefined;
|
|
160
|
+
base: string;
|
|
161
|
+
body: string | null;
|
|
162
|
+
draft: boolean;
|
|
163
|
+
number: number;
|
|
164
|
+
state: string;
|
|
164
165
|
subscribable?: {
|
|
165
166
|
identifier: string;
|
|
166
167
|
label: string;
|
|
167
168
|
namespace: string;
|
|
169
|
+
suggestedEvents?: string[] | undefined;
|
|
168
170
|
supportedEvents: string[];
|
|
169
171
|
type: string;
|
|
170
|
-
suggestedEvents?: string[] | undefined;
|
|
171
172
|
} | undefined;
|
|
173
|
+
title: string;
|
|
174
|
+
url: string;
|
|
175
|
+
target: "updatePullRequest";
|
|
172
176
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.258.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@sinclair/typebox": "^0.34.49",
|
|
32
32
|
"drizzle-orm": "^0.45.2",
|
|
33
33
|
"zod": "^4.5.4",
|
|
34
|
-
"@sentry/junior-plugin-api": "0.
|
|
34
|
+
"@sentry/junior-plugin-api": "0.258.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oxlint/plugins": "1.79.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"msw": "^2.14.6",
|
|
41
41
|
"oxlint": "^1.79.0",
|
|
42
42
|
"tsup": "^8.5.1",
|
|
43
|
-
"typescript": "^
|
|
43
|
+
"typescript": "^7.0.2",
|
|
44
44
|
"vitest": "^4.1.7",
|
|
45
45
|
"@sentry/junior-testing": "0.0.0"
|
|
46
46
|
},
|