Publish sentry-v3-to-v4 codemod to the Codemod registry

オープン
#1,253 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@BYK がすでに取り組んでいます。

2026年7月15日 から。

評価

この issue はまだ評価されていません。

説明

Background

PR #1201 (merge commit 9fa96f6d47f9fe2d7eacc5f7244d9d14c27e5696) shipped the v3→v4 migration guide and the sentry-v3-to-v4 codemod (codemods/sentry-v3-to-v4/). The codemod is fully built, tested (21 jssg fixtures), and CI-gated (codemod-test job), but it is not yet published to the Codemod registry.

Until it's published, the migration guide instructs users to run it from source (clone + npx codemod jssg run …). The shorter published form is documented but gated behind a "once published" note:

npx codemod@latest @sentry/cli-v3-to-v4

What needs to happen

  1. Create the @sentry scope on codemod.com (if it doesn't already exist).
  2. Register getsentry/cli as a trusted publisher for that scope (OIDC), so .github/workflows/publish-codemod.yml can publish without a long-lived token.
  3. Push a codemod-v* tag to trigger publish-codemod.yml (the workflow fires on push: tags: codemod-v* and also supports workflow_dispatch).
  4. Verify npx codemod @sentry/cli-v3-to-v4 resolves and runs.

Follow-up once published

  • Update docs/src/content/docs/migrating-from-v3.md — promote the npx codemod @sentry/cli-v3-to-v4 command out of the "once published" :::note and make it the primary invocation (the run-from-source path can stay as an alternative).

Notes

  • Nothing here blocks anything already merged — the CLI doesn't depend on the codemod package, codemod-test runs jssg test locally (no registry needed), and publish-codemod.yml only fires on the tag.
  • Package name is @sentry/cli-v3-to-v4; config lives in codemods/sentry-v3-to-v4/codemod.yaml + workflow.yaml.
主要言語
TypeScript
スター
121
フォーク
14
平均マージ
22時間 3分
マージ済み PR(30日)
94

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/cli のほかの issue

getsentry/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。