[eas-cli] Auto-create branch when channel has no branches mapped#3891
Merged
Conversation
|
Subscribed to pull request
Generated by CodeMention |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3891 +/- ##
==========================================
+ Coverage 59.01% 59.03% +0.02%
==========================================
Files 935 935
Lines 40933 40931 -2
Branches 8624 8622 -2
==========================================
+ Hits 24153 24158 +5
+ Misses 16684 16677 -7
Partials 96 96 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
✅ Thank you for adding the changelog entry! |
quinlanj
approved these changes
Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
eas update --channel <name>was failing withChannel has no branches associated with itwhen the channel existed but had no branch mapped.This trips up fresh projects:
eas buildauto-creates the channel without a branch, so by the time you runeas updatethe channel already exists. The CLI only ever auto-created a branch when the channel was missing (ChannelNotFoundError), so the existing-but-empty channel fell through to the error instead.Now the empty-channel case does the same thing as the missing-channel case: create a branch with the channel's name and map it.
Test plan
eas update --channel <empty channel>against a real project: the old CLI fails with the error above, this build creates the branch and publishes the update