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
Ignore setup GitHub Actions if hosting also selected (#3742) #3838
Ignore setup GitHub Actions if hosting also selected (#3742) #3838
Conversation
Hi @inlined, I’m assuming you are a member of the Firebase CLI team, so I’m reaching out to you. I sent this small pull request to fix #3742 the other day, but it seems to be stuck in workflow approval. It’s a small issue with a workaround, so it’s not urgent, but I’d be happy if you take a look at it at your convenience. If I need to take any additional action, such as changing the way it is implemented, I will be happy to do so! |
@bkendall Is the expert here. He'll be able to evaluate this PR. |
Thanks for the reply! I'm looking forward to the expert evaluating! |
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.
Looks reasonable to me.
Could you add a line to CHANGELOG.md:
- Fixes issue where `init` would crash with multiple Hosting items selected (#3742).
Thanks!
Hi @bkendall, thanks for the review! |
…irebase#3838) * Ignore setup GitHub Actions if hosting also selected * Add a line to CHANGELOG.md Co-authored-by: Bryan Kendall <bkend@google.com>
Description
Fix #3742 that
firebase init
exit in 404 Error when both Hosting and GitHub Actions are selected. The reason for this error is that when both "hosting" and "hosting:github" are selected, the function used internally which not support twice executions called twice.Actually, "hosting:github" is included in "hosting", so there is no need to execute the process twice. So I have changed it to ignore "hosting:github" when both are selected.
Scenarios Tested
As a fixed scenario, choose both "hosting" and "hosting:github" as shown below and answered all settings with default or YES.
I also tested that the command was not corrupted in the following three scenarios.
First, choose "hosting", but not "hosting:github", as below.
Choose "hosting:github", but not "hosting", as below.
Choose neither "hosting:github" nor "hosting", as below.
Sample Commands
N/A