Skip to content

feat(create-plugin): streamline codemod messaging - #2869

Draft
sunker wants to merge 2 commits into
mainfrom
eriksundell/codemod-messaging
Draft

sunker wants to merge 2 commits into
mainfrom
eriksundell/codemod-messaging

Conversation

@sunker

@sunker sunker commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR streamlines how codemods talk to the author. They now record on the Context with context.addNextStep() and context.skip(), and the framework renders it, instead of each codemod importing output and printing its own way. That fixes add reporting a skip and a success at the same time, and puts next steps after the change list and the install rather than before them.

Also updating the experimental-app-sdk codemod to align with this pattern.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Currently in manager.ts, it bumps .cprc.json whether or not a migration skipped, so a skipped migration is marked done permanently. Not sure this is the right path forward?

@sunker sunker changed the title feat(create-plugin): streamline codemod messaging Create Plugin: Streamline codemod messaging Sep 10, 2026
@sunker sunker changed the title Create Plugin: Streamline codemod messaging streamline codemod messaging. Sep 10, 2026
@sunker
sunker force-pushed the eriksundell/codemod-messaging branch from 2d17ea5 to 0ab085c Compare September 10, 2026 13:43
@sunker sunker changed the title streamline codemod messaging. feat(create-plugin): streamline codemod messaging Sep 10, 2026
@grafana-catalog-project-bot grafana-catalog-project-bot Bot moved this from 📬 Triage to 🧑‍💻 In development in Grafana Catalog Team Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🧑‍💻 In development

Development

Successfully merging this pull request may close these issues.

1 participant