Skip to content

feat(cli): add issue unlink command - #1376

Draft
betegon wants to merge 1 commit into
bt/cli-issue-link-unlinkfrom
bt/cli-issue-unlink
Draft

betegon wants to merge 1 commit into
bt/cli-issue-link-unlinkfrom
bt/cli-issue-unlink

Conversation

@betegon

@betegon betegon commented Oct 2, 2026

Copy link
Copy Markdown
Member

Stacked on #1373. Review this PR against bt/cli-issue-link-unlink; merge the link PR first.

Adds sentry issue unlink <issue> <url> to remove an external issue or GitHub pull request association without deleting either issue or changing the Sentry issue's status. Uses the CLI's standard confirmation flow, --yes, --dry-run, and JSON output; an already-absent link succeeds with changed: false.

Reuses the integration discovery, URL matching, formatting, and cache invalidation from the link PR. @sentry/api sends Sentry's stored association ID to the existing native or App DELETE endpoint, so unlinking does not need a working remote ticket or an App link form. Requires event:write and project access; older Sentry versions may still require event:admin. No retry or cache policy changes.

Validated with 324 focused tests, typechecks, lint, regenerated docs/SDK, and 12 bundled CLI calls against local HTTP fixtures. The full CLI suite has 10,360 passing tests, 14 skipped, and the pre-existing macOS musl installer failure. No production deletion was performed.

@betegon
betegon force-pushed the bt/cli-issue-link-unlink branch from 717a2fa to 6bca776 Compare October 2, 2026 17:22
@betegon
betegon force-pushed the bt/cli-issue-unlink branch from e4e94e4 to 3bb7b24 Compare October 2, 2026 17:54
@betegon
betegon force-pushed the bt/cli-issue-link-unlink branch from 8af0cc3 to 3321a95 Compare October 5, 2026 10:01
@betegon
betegon force-pushed the bt/cli-issue-unlink branch from 3bb7b24 to dc88fda Compare October 5, 2026 10:01
Remove stored external issue associations through @sentry/api, reusing
link discovery and URL matching. Preserve standard deletion confirmation,
dry-run previews, and successful no-ops when an association is absent.

Co-Authored-By: GPT-6 <noreply@openai.com>
@betegon
betegon force-pushed the bt/cli-issue-unlink branch from dc88fda to b87b442 Compare October 5, 2026 11:16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant