117
Choose py only when the issue is primarily about the Python SDK.
118
Choose ts only when the issue is primarily about the TypeScript SDK or TS packages other than the CLI.
119
Choose docs only when the issue is primarily about documentation.
120
+ Never choose tool-request for a broken existing integration or tool. Those are bugs, not tool requests, even if the title/body mentions a tool name or toolkit slug.
121
Set is_bug to true when the issue is primarily reporting broken behavior, a defect, an error, a regression, or unexpected behavior.
121
- Set is_bug to false for feature requests, questions, maintenance, cleanup, and tool requests.
122
+ Set is_bug to false for feature requests, questions, maintenance, cleanup, and true new-tool requests.
123
Set should_comment to true only when the issue appears incorrect, non-actionable, or missing the information needed to reproduce or investigate.
124
Set should_comment to false otherwise.
125
212
213
const labels = [];
214
const assignees = [];
215
+ const suppressToolRequestHandling = isBug && category === "tool-request";
216
+
217
+ if (suppressToolRequestHandling) {
218
+ core.info(
219
+ `Suppressing tool-request handling for issue #${issue_number} because it is classified as a bug. Original reason: ${reason}`
220
+ );
221
+ }
222
223
if (isBug) {
224
labels.push("bug");
238
assignees.push("CryogenicPlanet");
239
} else if (category === "feature-request") {
240
labels.push("feature-request");
233
- } else if (category === "tool-request") {
241
+ } else if (category === "tool-request" && !suppressToolRequestHandling) {
242
labels.push("tool-request");
243
}
244
260
});
261
}
262
255
- if (category !== "tool-request" && shouldComment && commentBody.trim().length > 0) {
263
+ if (
264
+ (category !== "tool-request" || suppressToolRequestHandling) &&
265
+ shouldComment &&
266
+ commentBody.trim().length > 0
267
+ ) {
268
await github.rest.issues.createComment({
269
owner,
270
repo,
273
});
274
}
275
264
- if (category === "tool-request" && issueState === "open") {
276
+ if (category === "tool-request" && !suppressToolRequestHandling && issueState === "open") {
277
await github.rest.issues.createComment({
278
owner,
279
repo,