@sentry/junior-sentry
v0.188.0
Published
Sentry investigations (per-user OAuth) and signed issue webhooks (internal integration) for Junior.
Readme
@sentry/junior-sentry
Sentry investigations (per-user OAuth) and signed issue webhooks (internal integration) for Junior.
pnpm add @sentry/junior @sentry/junior-sentryimport { defineJuniorPlugins } from "@sentry/junior";
import { sentryPlugin } from "@sentry/junior-sentry";
export const plugins = defineJuniorPlugins([sentryPlugin()]);User OAuth
Set SENTRY_CLIENT_ID and SENTRY_CLIENT_SECRET from a Sentry OAuth app whose redirect is:
<base-url>/api/oauth/callback/sentryJunior injects the user's token as SENTRY_AUTH_TOKEN for skill/CLI commands. Reconnect after scope changes.
Verified CLI surface (check live sentry --help before blocking):
sentry issue list|events|explain|plan|viewsentry org list|viewsentry log list|viewsentry trace list|view|logssentry alert metrics list|view|create|edit|deletesentry api <endpoint>fallback
Issue webhooks
Use a Sentry internal integration (not a public app install flow):
- Subscribe to the issue webhook resource.
- Point it at
https://<junior-host>/api/webhooks/sentry. - Set the org slug as
SENTRY_WEBHOOK_ORGand the integration client secret asSENTRY_WEBHOOK_SECRET, then redeploy.
Junior verifies Sentry-Hook-Signature, rejects payloads outside SENTRY_WEBHOOK_ORG, and publishes issue.created for org/project#issueId and org/project. Create watches/event tasks before the issue arrives; unmatched deliveries are not replayed.
Full guide: https://junior.sentry.dev/extend/sentry-plugin/
