@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
|
@@ -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
|
},
|