@sentry/junior-github 0.232.0 → 0.234.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -274,6 +274,7 @@ function githubObjectFacts(type, response) {
274
274
  const data = responseSchema.parse(response);
275
275
  const result = {
276
276
  sourceUpdatedAt: data.updated_at,
277
+ description: description(data.body),
277
278
  facts: type === "code_change" ? {
278
279
  type,
279
280
  author: short(data.user?.login),
@@ -292,7 +293,6 @@ function githubObjectFacts(type, response) {
292
293
  ).filter(Boolean)
293
294
  }
294
295
  };
295
- if (type === "code_change") result.description = description(data.body);
296
296
  return result;
297
297
  }
298
298
 
@@ -634,6 +634,7 @@ var createIssueStateSchema = Type.Union([
634
634
  input: Type.Optional(createIssueInputSchema),
635
635
  number: Type.Number(),
636
636
  facts: Type.Optional(Type.Unknown()),
637
+ description: Type.Optional(Type.String({ maxLength: 4e3 })),
637
638
  sourceUpdatedAt: Type.Optional(Type.String()),
638
639
  status: Type.Literal("completed"),
639
640
  url: Type.String()
@@ -674,6 +675,7 @@ function gitHubIssueToolResult(input, result, canSubscribe) {
674
675
  objectAnnotations: [
675
676
  githubObjectAnnotation({
676
677
  facts: result.facts,
678
+ description: result.description,
677
679
  sourceUpdatedAt: result.sourceUpdatedAt,
678
680
  repo: input.repo,
679
681
  number: result.number,
@@ -843,6 +845,7 @@ function createGitHubIssueTool(ctx) {
843
845
  const completedResult = {
844
846
  facts: state.facts === void 0 ? void 0 : objectFactsSchema.parse(state.facts),
845
847
  sourceUpdatedAt: state.sourceUpdatedAt,
848
+ description: state.description,
846
849
  number: state.number,
847
850
  url: state.url
848
851
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-github",
3
- "version": "0.232.0",
3
+ "version": "0.234.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.232.0"
34
+ "@sentry/junior-plugin-api": "0.234.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oxlint/plugins": "1.79.0",