-
Notifications
You must be signed in to change notification settings - Fork 85
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
[eas-cli] Only create a channel with branch name when branch is created #1507
Conversation
ccb446b
to
56871ac
Compare
Size Change: -2.89 kB (0%) Total Size: 40.3 MB
|
Codecov Report
@@ Coverage Diff @@
## main #1507 +/- ##
==========================================
- Coverage 51.49% 51.49% -0.00%
==========================================
Files 454 454
Lines 15675 15676 +1
Branches 3087 3088 +1
==========================================
Hits 8071 8071
- Misses 7590 7591 +1
Partials 14 14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: branchIsCreated
-> createdBranch
. Maybe this is me but branchIsCreated
should be always true after calling ensureBranchExistsAsync
.
Makes sense, done! |
/changelog-entry bug-fix Only create a new channel when update branch is new |
Checklist
/changelog-entry [breaking-change|new-feature|bug-fix|chore] [message]
and CHANGELOG.md will be updated automatically.Why
I noticed that whenever you have your own custom branch/channels mapping set up, it still created a new channel with that same branch name. Even when it's not necessary. This change was introduced in PR #1478, while trying to better surface important behavior within the command (instead of obfuscating it in side utility functions)
How
Preferably, I would implement something like:
But we throw errors in that case, which makes implementing this a bit harder. Instead, I opted for a
isCreated
boolean in theensureBranchExists
utility class.Test Plan
Please describe how you tested this change and how a reviewer could reproduce your test, especially if this PR does not include automated tests! If possible, please also provide terminal output and/or screenshots demonstrating your test/reproduction.