fix(target): preserve app context across bundle and publish - #74
fix(target): preserve app context across bundle and publish#74sunnylqm wants to merge 13 commits into
Conversation
|
Warning Review limit reachedNext included review available in 52 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughBundle publishing now carries explicit ChangesTarget context propagation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change keeps the selected app and configuration consistent through bundling, version creation, and native-package binding, preventing cross-app targeting drift. No actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant CLI
participant normalizeBundleOptions
participant createAppTargetResolver
participant createPublishBundleRequest
participant PublishAPI
participant versionCommands
CLI->>normalizeBundleOptions: provide appId and config
normalizeBundleOptions->>createAppTargetResolver: resolve target context
createAppTargetResolver-->>createPublishBundleRequest: return appId and configPath
createPublishBundleRequest->>PublishAPI: submit bundle publish request
PublishAPI-->>CLI: return version ID
CLI->>versionCommands: update version with appId
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
全部评审意见已逐项落实:
最新提交: GitHub Actions run #175 全部通过:
CodeRabbit 对功能变更的最近一次完整增量评审结论为 No actionable comments、Merge Risk: Minimal;当前无未解决 review thread,最新 commit status 亦为 success。 |
Summary
--configwhen selecting or creating an appappIdandconfigfrombundleinto the publish stepappIdfrom version creation into native-package bindingProblem
A single publish command could operate on more than one app context:
bundle --appId ... --name ...used the explicit app for Hermes base lookup, but did not forward it topublishpublish --appId ...created the OTA version under that app, then the internal binding step re-read the default selected appcreateApp --config ...selected the newly created app in the default config rather than the requested fileupdate.json, so the Cresc defaultcresc.config.jsonwas not consistently honoredIn a multi-app project this could create a version for one app and attempt to bind it against another app's native package.
Changes
appIdandconfigas part of bundle optionsupdateJsonas the brand-aware default config pathcreateApp's explicit config path intoselectAppTests
appIdandconfiggetSelectedAppreads an explicit config pathcreateAppwrites selection to the explicit config pathappIdis used for upload, version creation, and bindingGitHub Actions will run lint/typecheck, unit tests with coverage, and the npm publish dry run.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
New Features
Bug Fixes
Tests