@sentry/junior-github 0.285.0 → 0.287.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/index.js +741 -683
- package/dist/tools/clone-repository.d.ts +8 -0
- package/dist/tools/comment-on-issue.d.ts +137 -0
- package/dist/tools/comment-on-pull-request.d.ts +8 -0
- package/dist/tools/create-issue.d.ts +8 -0
- package/dist/tools/create-pull-request.d.ts +8 -0
- package/dist/tools/get-deployment.d.ts +8 -0
- package/dist/tools/get-issue.d.ts +8 -0
- package/dist/tools/get-pull-request.d.ts +8 -0
- package/dist/tools/get-release.d.ts +8 -0
- package/dist/tools/get-repository.d.ts +8 -0
- package/dist/tools/get-status.d.ts +8 -0
- package/dist/tools/resolve-pull-request-review-thread.d.ts +8 -0
- package/dist/tools/submit-pull-request-review.d.ts +8 -0
- package/dist/tools/update-issue.d.ts +8 -0
- package/dist/tools/update-pull-request-feedback.d.ts +8 -0
- package/dist/tools/update-pull-request.d.ts +8 -0
- package/package.json +2 -2
- package/skills/github-issues/SKILL.md +3 -2
- package/skills/github-issues/references/api-surface.md +6 -6
- package/skills/github-issues/references/troubleshooting-workarounds.md +0 -1
|
@@ -58,6 +58,10 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
|
|
|
58
58
|
attendees?: string[] | undefined;
|
|
59
59
|
} | undefined;
|
|
60
60
|
}[] | undefined;
|
|
61
|
+
reply?: {
|
|
62
|
+
text: string;
|
|
63
|
+
url?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
61
65
|
truncated?: boolean | undefined;
|
|
62
66
|
continuation?: {
|
|
63
67
|
arguments: Record<string, unknown>;
|
|
@@ -117,6 +121,10 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
|
|
|
117
121
|
attendees?: string[] | undefined;
|
|
118
122
|
} | undefined;
|
|
119
123
|
}[] | undefined;
|
|
124
|
+
reply?: {
|
|
125
|
+
text: string;
|
|
126
|
+
url?: string | undefined;
|
|
127
|
+
} | undefined;
|
|
120
128
|
truncated?: boolean | undefined;
|
|
121
129
|
continuation?: {
|
|
122
130
|
arguments: Record<string, unknown>;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { type PluginEgress } from "@sentry/junior-plugin-api";
|
|
2
|
+
/** Post a comment on a GitHub issue as the App bot. */
|
|
3
|
+
export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
4
|
+
repo: string;
|
|
5
|
+
number: number;
|
|
6
|
+
body: string;
|
|
7
|
+
}, {
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
objectAnnotations?: {
|
|
10
|
+
kind: "object";
|
|
11
|
+
key: string;
|
|
12
|
+
label: string;
|
|
13
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
14
|
+
title: string;
|
|
15
|
+
url: string | null;
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
status?: string | undefined;
|
|
18
|
+
trigger?: string | undefined;
|
|
19
|
+
warning?: string | undefined;
|
|
20
|
+
displayType?: string | undefined;
|
|
21
|
+
sourceUpdatedAt?: string | undefined;
|
|
22
|
+
facts?: {
|
|
23
|
+
type: "code_change";
|
|
24
|
+
author?: string | undefined;
|
|
25
|
+
sourceBranch?: string | undefined;
|
|
26
|
+
targetBranch?: string | undefined;
|
|
27
|
+
reviewers?: string[] | undefined;
|
|
28
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
29
|
+
checks?: {
|
|
30
|
+
passed: number;
|
|
31
|
+
failed: number;
|
|
32
|
+
pending: number;
|
|
33
|
+
} | undefined;
|
|
34
|
+
mergeable?: boolean | undefined;
|
|
35
|
+
changedFiles?: number | undefined;
|
|
36
|
+
additions?: number | undefined;
|
|
37
|
+
deletions?: number | undefined;
|
|
38
|
+
} | {
|
|
39
|
+
type: "task";
|
|
40
|
+
assignees?: string[] | undefined;
|
|
41
|
+
priority?: string | undefined;
|
|
42
|
+
project?: string | undefined;
|
|
43
|
+
cycle?: string | undefined;
|
|
44
|
+
dueDate?: string | undefined;
|
|
45
|
+
labels?: string[] | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
type: "deployment";
|
|
48
|
+
project?: string | undefined;
|
|
49
|
+
environment?: string | undefined;
|
|
50
|
+
revision?: string | undefined;
|
|
51
|
+
branch?: string | undefined;
|
|
52
|
+
} | {
|
|
53
|
+
type: "calendar_event";
|
|
54
|
+
when?: string | undefined;
|
|
55
|
+
attendees?: string[] | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
reply?: {
|
|
59
|
+
text: string;
|
|
60
|
+
url?: string | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
truncated?: boolean | undefined;
|
|
63
|
+
continuation?: {
|
|
64
|
+
arguments: Record<string, unknown>;
|
|
65
|
+
reason?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
target: "commentOnIssue";
|
|
68
|
+
repo: string;
|
|
69
|
+
number: number;
|
|
70
|
+
comment_id: number;
|
|
71
|
+
url: string;
|
|
72
|
+
}, {
|
|
73
|
+
[x: string]: unknown;
|
|
74
|
+
objectAnnotations?: {
|
|
75
|
+
kind: "object";
|
|
76
|
+
key: string;
|
|
77
|
+
label: string;
|
|
78
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
79
|
+
title: string;
|
|
80
|
+
url: string | null;
|
|
81
|
+
description?: string | undefined;
|
|
82
|
+
status?: string | undefined;
|
|
83
|
+
trigger?: string | undefined;
|
|
84
|
+
warning?: string | undefined;
|
|
85
|
+
displayType?: string | undefined;
|
|
86
|
+
sourceUpdatedAt?: string | undefined;
|
|
87
|
+
facts?: {
|
|
88
|
+
type: "code_change";
|
|
89
|
+
author?: string | undefined;
|
|
90
|
+
sourceBranch?: string | undefined;
|
|
91
|
+
targetBranch?: string | undefined;
|
|
92
|
+
reviewers?: string[] | undefined;
|
|
93
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
94
|
+
checks?: {
|
|
95
|
+
passed: number;
|
|
96
|
+
failed: number;
|
|
97
|
+
pending: number;
|
|
98
|
+
} | undefined;
|
|
99
|
+
mergeable?: boolean | undefined;
|
|
100
|
+
changedFiles?: number | undefined;
|
|
101
|
+
additions?: number | undefined;
|
|
102
|
+
deletions?: number | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
type: "task";
|
|
105
|
+
assignees?: string[] | undefined;
|
|
106
|
+
priority?: string | undefined;
|
|
107
|
+
project?: string | undefined;
|
|
108
|
+
cycle?: string | undefined;
|
|
109
|
+
dueDate?: string | undefined;
|
|
110
|
+
labels?: string[] | undefined;
|
|
111
|
+
} | {
|
|
112
|
+
type: "deployment";
|
|
113
|
+
project?: string | undefined;
|
|
114
|
+
environment?: string | undefined;
|
|
115
|
+
revision?: string | undefined;
|
|
116
|
+
branch?: string | undefined;
|
|
117
|
+
} | {
|
|
118
|
+
type: "calendar_event";
|
|
119
|
+
when?: string | undefined;
|
|
120
|
+
attendees?: string[] | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
reply?: {
|
|
124
|
+
text: string;
|
|
125
|
+
url?: string | undefined;
|
|
126
|
+
} | undefined;
|
|
127
|
+
truncated?: boolean | undefined;
|
|
128
|
+
continuation?: {
|
|
129
|
+
arguments: Record<string, unknown>;
|
|
130
|
+
reason?: string | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
target: "commentOnIssue";
|
|
133
|
+
repo: string;
|
|
134
|
+
number: number;
|
|
135
|
+
comment_id: number;
|
|
136
|
+
url: string;
|
|
137
|
+
}>;
|
|
@@ -60,6 +60,10 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
|
|
|
60
60
|
attendees?: string[] | undefined;
|
|
61
61
|
} | undefined;
|
|
62
62
|
}[] | undefined;
|
|
63
|
+
reply?: {
|
|
64
|
+
text: string;
|
|
65
|
+
url?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
63
67
|
truncated?: boolean | undefined;
|
|
64
68
|
continuation?: {
|
|
65
69
|
arguments: Record<string, unknown>;
|
|
@@ -121,6 +125,10 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
|
|
|
121
125
|
attendees?: string[] | undefined;
|
|
122
126
|
} | undefined;
|
|
123
127
|
}[] | undefined;
|
|
128
|
+
reply?: {
|
|
129
|
+
text: string;
|
|
130
|
+
url?: string | undefined;
|
|
131
|
+
} | undefined;
|
|
124
132
|
truncated?: boolean | undefined;
|
|
125
133
|
continuation?: {
|
|
126
134
|
arguments: Record<string, unknown>;
|
|
@@ -55,6 +55,10 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
|
|
|
55
55
|
attendees?: string[] | undefined;
|
|
56
56
|
} | undefined;
|
|
57
57
|
}[] | undefined;
|
|
58
|
+
reply?: {
|
|
59
|
+
text: string;
|
|
60
|
+
url?: string | undefined;
|
|
61
|
+
} | undefined;
|
|
58
62
|
truncated?: boolean | undefined;
|
|
59
63
|
continuation?: {
|
|
60
64
|
arguments: Record<string, unknown>;
|
|
@@ -122,6 +126,10 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
|
|
|
122
126
|
attendees?: string[] | undefined;
|
|
123
127
|
} | undefined;
|
|
124
128
|
}[] | undefined;
|
|
129
|
+
reply?: {
|
|
130
|
+
text: string;
|
|
131
|
+
url?: string | undefined;
|
|
132
|
+
} | undefined;
|
|
125
133
|
truncated?: boolean | undefined;
|
|
126
134
|
continuation?: {
|
|
127
135
|
arguments: Record<string, unknown>;
|
|
@@ -58,6 +58,10 @@ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookCon
|
|
|
58
58
|
attendees?: string[] | undefined;
|
|
59
59
|
} | undefined;
|
|
60
60
|
}[] | undefined;
|
|
61
|
+
reply?: {
|
|
62
|
+
text: string;
|
|
63
|
+
url?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
61
65
|
truncated?: boolean | undefined;
|
|
62
66
|
continuation?: {
|
|
63
67
|
arguments: Record<string, unknown>;
|
|
@@ -133,6 +137,10 @@ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookCon
|
|
|
133
137
|
attendees?: string[] | undefined;
|
|
134
138
|
} | undefined;
|
|
135
139
|
}[] | undefined;
|
|
140
|
+
reply?: {
|
|
141
|
+
text: string;
|
|
142
|
+
url?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
136
144
|
truncated?: boolean | undefined;
|
|
137
145
|
continuation?: {
|
|
138
146
|
arguments: Record<string, unknown>;
|
|
@@ -59,6 +59,10 @@ export declare function createGitHubGetDeploymentTool(ctx: {
|
|
|
59
59
|
attendees?: string[] | undefined;
|
|
60
60
|
} | undefined;
|
|
61
61
|
}[] | undefined;
|
|
62
|
+
reply?: {
|
|
63
|
+
text: string;
|
|
64
|
+
url?: string | undefined;
|
|
65
|
+
} | undefined;
|
|
62
66
|
truncated?: boolean | undefined;
|
|
63
67
|
continuation?: {
|
|
64
68
|
arguments: Record<string, unknown>;
|
|
@@ -147,6 +151,10 @@ export declare function createGitHubGetDeploymentTool(ctx: {
|
|
|
147
151
|
attendees?: string[] | undefined;
|
|
148
152
|
} | undefined;
|
|
149
153
|
}[] | undefined;
|
|
154
|
+
reply?: {
|
|
155
|
+
text: string;
|
|
156
|
+
url?: string | undefined;
|
|
157
|
+
} | undefined;
|
|
150
158
|
truncated?: boolean | undefined;
|
|
151
159
|
continuation?: {
|
|
152
160
|
arguments: Record<string, unknown>;
|
|
@@ -69,6 +69,10 @@ export declare function createGitHubGetIssueTool(ctx: {
|
|
|
69
69
|
attendees?: string[] | undefined;
|
|
70
70
|
} | undefined;
|
|
71
71
|
}[] | undefined;
|
|
72
|
+
reply?: {
|
|
73
|
+
text: string;
|
|
74
|
+
url?: string | undefined;
|
|
75
|
+
} | undefined;
|
|
72
76
|
truncated?: boolean | undefined;
|
|
73
77
|
continuation?: {
|
|
74
78
|
arguments: Record<string, unknown>;
|
|
@@ -144,6 +148,10 @@ export declare function createGitHubGetIssueTool(ctx: {
|
|
|
144
148
|
attendees?: string[] | undefined;
|
|
145
149
|
} | undefined;
|
|
146
150
|
}[] | undefined;
|
|
151
|
+
reply?: {
|
|
152
|
+
text: string;
|
|
153
|
+
url?: string | undefined;
|
|
154
|
+
} | undefined;
|
|
147
155
|
truncated?: boolean | undefined;
|
|
148
156
|
continuation?: {
|
|
149
157
|
arguments: Record<string, unknown>;
|
|
@@ -58,6 +58,10 @@ export declare function createGitHubGetPullRequestTool(ctx: {
|
|
|
58
58
|
attendees?: string[] | undefined;
|
|
59
59
|
} | undefined;
|
|
60
60
|
}[] | undefined;
|
|
61
|
+
reply?: {
|
|
62
|
+
text: string;
|
|
63
|
+
url?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
61
65
|
truncated?: boolean | undefined;
|
|
62
66
|
continuation?: {
|
|
63
67
|
arguments: Record<string, unknown>;
|
|
@@ -132,6 +136,10 @@ export declare function createGitHubGetPullRequestTool(ctx: {
|
|
|
132
136
|
attendees?: string[] | undefined;
|
|
133
137
|
} | undefined;
|
|
134
138
|
}[] | undefined;
|
|
139
|
+
reply?: {
|
|
140
|
+
text: string;
|
|
141
|
+
url?: string | undefined;
|
|
142
|
+
} | undefined;
|
|
135
143
|
truncated?: boolean | undefined;
|
|
136
144
|
continuation?: {
|
|
137
145
|
arguments: Record<string, unknown>;
|
|
@@ -58,6 +58,10 @@ export declare function createGitHubGetReleaseTool(ctx: {
|
|
|
58
58
|
attendees?: string[] | undefined;
|
|
59
59
|
} | undefined;
|
|
60
60
|
}[] | undefined;
|
|
61
|
+
reply?: {
|
|
62
|
+
text: string;
|
|
63
|
+
url?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
61
65
|
truncated?: boolean | undefined;
|
|
62
66
|
continuation?: {
|
|
63
67
|
arguments: Record<string, unknown>;
|
|
@@ -136,6 +140,10 @@ export declare function createGitHubGetReleaseTool(ctx: {
|
|
|
136
140
|
attendees?: string[] | undefined;
|
|
137
141
|
} | undefined;
|
|
138
142
|
}[] | undefined;
|
|
143
|
+
reply?: {
|
|
144
|
+
text: string;
|
|
145
|
+
url?: string | undefined;
|
|
146
|
+
} | undefined;
|
|
139
147
|
truncated?: boolean | undefined;
|
|
140
148
|
continuation?: {
|
|
141
149
|
arguments: Record<string, unknown>;
|
|
@@ -57,6 +57,10 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
57
57
|
attendees?: string[] | undefined;
|
|
58
58
|
} | undefined;
|
|
59
59
|
}[] | undefined;
|
|
60
|
+
reply?: {
|
|
61
|
+
text: string;
|
|
62
|
+
url?: string | undefined;
|
|
63
|
+
} | undefined;
|
|
60
64
|
truncated?: boolean | undefined;
|
|
61
65
|
continuation?: {
|
|
62
66
|
arguments: Record<string, unknown>;
|
|
@@ -127,6 +131,10 @@ export declare function createGitHubGetRepositoryTool(ctx: {
|
|
|
127
131
|
attendees?: string[] | undefined;
|
|
128
132
|
} | undefined;
|
|
129
133
|
}[] | undefined;
|
|
134
|
+
reply?: {
|
|
135
|
+
text: string;
|
|
136
|
+
url?: string | undefined;
|
|
137
|
+
} | undefined;
|
|
130
138
|
truncated?: boolean | undefined;
|
|
131
139
|
continuation?: {
|
|
132
140
|
arguments: Record<string, unknown>;
|
|
@@ -53,6 +53,10 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
53
53
|
attendees?: string[] | undefined;
|
|
54
54
|
} | undefined;
|
|
55
55
|
}[] | undefined;
|
|
56
|
+
reply?: {
|
|
57
|
+
text: string;
|
|
58
|
+
url?: string | undefined;
|
|
59
|
+
} | undefined;
|
|
56
60
|
truncated?: boolean | undefined;
|
|
57
61
|
continuation?: {
|
|
58
62
|
arguments: Record<string, unknown>;
|
|
@@ -119,6 +123,10 @@ export declare function createGitHubGetStatusTool(ctx: {
|
|
|
119
123
|
attendees?: string[] | undefined;
|
|
120
124
|
} | undefined;
|
|
121
125
|
}[] | undefined;
|
|
126
|
+
reply?: {
|
|
127
|
+
text: string;
|
|
128
|
+
url?: string | undefined;
|
|
129
|
+
} | undefined;
|
|
122
130
|
truncated?: boolean | undefined;
|
|
123
131
|
continuation?: {
|
|
124
132
|
arguments: Record<string, unknown>;
|
|
@@ -56,6 +56,10 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
56
56
|
attendees?: string[] | undefined;
|
|
57
57
|
} | undefined;
|
|
58
58
|
}[] | undefined;
|
|
59
|
+
reply?: {
|
|
60
|
+
text: string;
|
|
61
|
+
url?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
59
63
|
truncated?: boolean | undefined;
|
|
60
64
|
continuation?: {
|
|
61
65
|
arguments: Record<string, unknown>;
|
|
@@ -117,6 +121,10 @@ export declare function createGitHubResolvePullRequestReviewThreadTool(ctx: {
|
|
|
117
121
|
attendees?: string[] | undefined;
|
|
118
122
|
} | undefined;
|
|
119
123
|
}[] | undefined;
|
|
124
|
+
reply?: {
|
|
125
|
+
text: string;
|
|
126
|
+
url?: string | undefined;
|
|
127
|
+
} | undefined;
|
|
120
128
|
truncated?: boolean | undefined;
|
|
121
129
|
continuation?: {
|
|
122
130
|
arguments: Record<string, unknown>;
|
|
@@ -64,6 +64,10 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
64
64
|
attendees?: string[] | undefined;
|
|
65
65
|
} | undefined;
|
|
66
66
|
}[] | undefined;
|
|
67
|
+
reply?: {
|
|
68
|
+
text: string;
|
|
69
|
+
url?: string | undefined;
|
|
70
|
+
} | undefined;
|
|
67
71
|
truncated?: boolean | undefined;
|
|
68
72
|
continuation?: {
|
|
69
73
|
arguments: Record<string, unknown>;
|
|
@@ -126,6 +130,10 @@ export declare function createGitHubSubmitPullRequestReviewTool(egress: PluginEg
|
|
|
126
130
|
attendees?: string[] | undefined;
|
|
127
131
|
} | undefined;
|
|
128
132
|
}[] | undefined;
|
|
133
|
+
reply?: {
|
|
134
|
+
text: string;
|
|
135
|
+
url?: string | undefined;
|
|
136
|
+
} | undefined;
|
|
129
137
|
truncated?: boolean | undefined;
|
|
130
138
|
continuation?: {
|
|
131
139
|
arguments: Record<string, unknown>;
|
|
@@ -80,6 +80,10 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
80
80
|
attendees?: string[] | undefined;
|
|
81
81
|
} | undefined;
|
|
82
82
|
}[] | undefined;
|
|
83
|
+
reply?: {
|
|
84
|
+
text: string;
|
|
85
|
+
url?: string | undefined;
|
|
86
|
+
} | undefined;
|
|
83
87
|
truncated?: boolean | undefined;
|
|
84
88
|
continuation?: {
|
|
85
89
|
arguments: Record<string, unknown>;
|
|
@@ -151,6 +155,10 @@ export declare function createGitHubUpdateIssueTool(ctx: {
|
|
|
151
155
|
attendees?: string[] | undefined;
|
|
152
156
|
} | undefined;
|
|
153
157
|
}[] | undefined;
|
|
158
|
+
reply?: {
|
|
159
|
+
text: string;
|
|
160
|
+
url?: string | undefined;
|
|
161
|
+
} | undefined;
|
|
154
162
|
truncated?: boolean | undefined;
|
|
155
163
|
continuation?: {
|
|
156
164
|
arguments: Record<string, unknown>;
|
|
@@ -83,6 +83,10 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
83
83
|
attendees?: string[] | undefined;
|
|
84
84
|
} | undefined;
|
|
85
85
|
}[] | undefined;
|
|
86
|
+
reply?: {
|
|
87
|
+
text: string;
|
|
88
|
+
url?: string | undefined;
|
|
89
|
+
} | undefined;
|
|
86
90
|
truncated?: boolean | undefined;
|
|
87
91
|
continuation?: {
|
|
88
92
|
arguments: Record<string, unknown>;
|
|
@@ -144,6 +148,10 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
|
|
|
144
148
|
attendees?: string[] | undefined;
|
|
145
149
|
} | undefined;
|
|
146
150
|
}[] | undefined;
|
|
151
|
+
reply?: {
|
|
152
|
+
text: string;
|
|
153
|
+
url?: string | undefined;
|
|
154
|
+
} | undefined;
|
|
147
155
|
truncated?: boolean | undefined;
|
|
148
156
|
continuation?: {
|
|
149
157
|
arguments: Record<string, unknown>;
|
|
@@ -82,6 +82,10 @@ export declare function createGitHubUpdatePullRequestTool(ctx: {
|
|
|
82
82
|
attendees?: string[] | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}[] | undefined;
|
|
85
|
+
reply?: {
|
|
86
|
+
text: string;
|
|
87
|
+
url?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
85
89
|
truncated?: boolean | undefined;
|
|
86
90
|
continuation?: {
|
|
87
91
|
arguments: Record<string, unknown>;
|
|
@@ -154,6 +158,10 @@ export declare function createGitHubUpdatePullRequestTool(ctx: {
|
|
|
154
158
|
attendees?: string[] | undefined;
|
|
155
159
|
} | undefined;
|
|
156
160
|
}[] | undefined;
|
|
161
|
+
reply?: {
|
|
162
|
+
text: string;
|
|
163
|
+
url?: string | undefined;
|
|
164
|
+
} | undefined;
|
|
157
165
|
truncated?: boolean | undefined;
|
|
158
166
|
continuation?: {
|
|
159
167
|
arguments: Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.287.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"drizzle-orm": "^0.45.2",
|
|
33
33
|
"marked": "^18.1.2",
|
|
34
34
|
"zod": "^4.5.4",
|
|
35
|
-
"@sentry/junior-plugin-api": "0.
|
|
35
|
+
"@sentry/junior-plugin-api": "0.287.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@oxlint/plugins": "1.79.0",
|
|
@@ -5,7 +5,7 @@ description: Create, update, comment on, label, and inspect GitHub issues with c
|
|
|
5
5
|
|
|
6
6
|
# GitHub Issue Operations
|
|
7
7
|
|
|
8
|
-
Create issues with `github_createIssue`. Read one issue with `github_getIssue`. Update issue title, body, or state with `github_updateIssue`. Use `gh` for comments, labels, and issue lists.
|
|
8
|
+
Create issues with `github_createIssue`. Read one issue with `github_getIssue`. Update issue title, body, or state with `github_updateIssue`. Comment with `github_commentOnIssue`. Use `gh` for reading comments, labels, and issue lists.
|
|
9
9
|
Use only for GitHub issues. For pull requests, branches, pushes, or PR creation order questions, load `github-code` instead.
|
|
10
10
|
|
|
11
11
|
## Reference loading
|
|
@@ -94,7 +94,8 @@ Run [references/issue-quality-checklist.md](references/issue-quality-checklist.m
|
|
|
94
94
|
|
|
95
95
|
- Use `github_createIssue` for new issues so the runtime owns idempotency and session-link footers.
|
|
96
96
|
- Use `github_updateIssue` for issue title, body, or state changes so the runtime preserves requester attribution and the session footer.
|
|
97
|
-
- Use `
|
|
97
|
+
- Use `github_commentOnIssue` to comment on an issue.
|
|
98
|
+
- Use `gh` commands from [references/api-surface.md](references/api-surface.md) for labels, assignees, and issue lists.
|
|
98
99
|
- For issue listing or other read-only inspection, prefer `--json` output so empty results still produce deterministic stdout.
|
|
99
100
|
- Check duplicates silently before creating a new issue. Do not mention this check in the final reply unless a duplicate blocks creation.
|
|
100
101
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GitHub Issue API Surface
|
|
2
2
|
|
|
3
|
-
Issue creation uses `github_createIssue`, one-issue reads use `github_getIssue`,
|
|
3
|
+
Issue creation uses `github_createIssue`, one-issue reads use `github_getIssue`, title, body, and state updates use `github_updateIssue`, and new comments use `github_commentOnIssue`. Comment reads, labels, assignees, and issue lists use `gh`; generic GraphQL-backed `gh issue` mutations are not supported.
|
|
4
4
|
|
|
5
5
|
## Repo scoping
|
|
6
6
|
|
|
@@ -10,10 +10,10 @@ Treat explicit repo flags as command-targeting safety rails, not as a credential
|
|
|
10
10
|
|
|
11
11
|
## GitHub App permission guidance
|
|
12
12
|
|
|
13
|
-
| Permission capability | Operations
|
|
14
|
-
| --------------------- |
|
|
15
|
-
| `github.issues.read` | `github_getIssue`, `gh api /repos/.../comments`
|
|
16
|
-
| `github.issues.write` | Typed issue create
|
|
13
|
+
| Permission capability | Operations |
|
|
14
|
+
| --------------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `github.issues.read` | `github_getIssue`, `gh api /repos/.../comments` |
|
|
16
|
+
| `github.issues.write` | Typed issue create, update, and comment tools, and allowlisted label or assignee endpoints through `gh api` |
|
|
17
17
|
|
|
18
18
|
## Command matrix
|
|
19
19
|
|
|
@@ -27,7 +27,7 @@ Treat explicit repo flags as command-targeting safety rails, not as a credential
|
|
|
27
27
|
| Remove label | `gh api repos/owner/repo/issues/NUMBER/labels/LABEL --method DELETE` |
|
|
28
28
|
| Add assignees | `gh api repos/owner/repo/issues/NUMBER/assignees --method POST --input assignees.json` |
|
|
29
29
|
| Remove assignees | `gh api repos/owner/repo/issues/NUMBER/assignees --method DELETE --input assignees.json` |
|
|
30
|
-
| Add comment | `
|
|
30
|
+
| Add comment | `github_commentOnIssue({ repo: "owner/repo", number: NUMBER, body: "..." })` |
|
|
31
31
|
| List issues | `gh issue list --repo owner/repo --json number,title,state,url --limit 20` |
|
|
32
32
|
| Read issue | `github_getIssue({ repo: "owner/repo", number: NUMBER })` |
|
|
33
33
|
| Read comments | `gh api /repos/owner/repo/issues/NUMBER/comments --method GET --header "Accept: application/vnd.github+json"` |
|
|
@@ -14,7 +14,6 @@ Use this table to recover quickly while keeping operations deterministic.
|
|
|
14
14
|
| `permission_denied` with `source: "upstream"` | GitHub rejected the forwarded request. | Read GitHub's error first. If the message says GitHub denied access, verify the target, App permissions, and installation scope. Do not request user OAuth for a bot-owned issue operation. |
|
|
15
15
|
| 404 Not Found | Issue number or repo is wrong. | Validate repo + issue ID with `github_getIssue`. |
|
|
16
16
|
| Issue label mutation fails | Wrong REST payload or wrong repo context. | Use the allowlisted issue labels endpoint with an explicit `owner/repo` path and valid JSON input. |
|
|
17
|
-
| Comment command fails with empty body | JSON input is missing a non-empty `body`. | Ensure the REST comment payload contains a non-empty `body` before retrying. |
|
|
18
17
|
|
|
19
18
|
## Retry guidance
|
|
20
19
|
|