-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat : Implement codemod to rename slug prop to aiLabel for IBM Products components #17966
base: main
Are you sure you want to change the base?
feat : Implement codemod to rename slug prop to aiLabel for IBM Products components #17966
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ithub.com/sangeethababu9223/carbon into feat/codemod-to-transform-slug-to-ailabel
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ithub.com/sangeethababu9223/carbon into feat/codemod-to-transform-slug-to-ailabel
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17966 +/- ##
==========================================
- Coverage 81.82% 81.78% -0.04%
==========================================
Files 404 404
Lines 14067 14073 +6
Branches 4360 4363 +3
==========================================
Hits 11510 11510
- Misses 2395 2400 +5
- Partials 162 163 +1 ☔ View full report in Codecov by Sentry. |
Closes 6307
This PR updates the @carbon/upgrade package with a new transform
ibm-products-slug-to-ailabel-prop
, to update theslug
prop inibm products components
Tearsheet
,SidePanel
,ExpressiveCard
andProductiveCard
toAILabel
.Changelog
New
packages/upgrade/transforms/ibm-products-slug-to-ailabel-prop.js
packages/upgrade/transforms/__testfixtures__/ibm-products-slug-to-ailabel-prop.input.js
andpackages/upgrade/transforms/__testfixtures__/ibm-products-slug-to-ailabel-prop.output.js
filespackages/upgrade/transforms/__tests__/ibm-products-slug-to-ailabel-prop-test.js
Changed
packages/upgrade/src/upgrades.js
with a new migration entryibm-products-slug-to-ailabel-prop
Testing / Reviewing
./bin/carbon-upgrade.js
migrate list and verify a new entryibm-products-slug-to-ailabel-prop
presentnpx jest transforms/__tests__/ibm-products-slug-to-ailabel-prop-test.js
and verify test result