-
Notifications
You must be signed in to change notification settings - Fork 158
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: basic push-status command implementation and extended push command #1321
Conversation
🦋 Changeset detectedLatest commit: 7a85e28 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success699 tests passing in 100 suites. Report generated by 🧪jest coverage report action from 7a85e28 |
|
We need to discuss the naming of this command, either to somehow reuse the |
Agree, for now it's not clear how to properly distinguish which command to run when you hit I'm also thinking about docker approach with contexts. Example:
And then:
@lornajane , @RomanHotsiy , @tatomyr what do you think? |
The default context will be hardcoded as |
I think we can handle it without breaking changes, just need to properly migrate old |
Yeah, I think the suffix is a temporary solution not to get blocked. I don't have an answer now. Let me think a bit. |
It's fine to work on it with the suffix, but we can't merge until we figure out a better approach. I think we'll end up with other commands that also have the product names in, so maybe adopting that extra piece is the least confusing option. I'm not in favour of introducing the context as it's quite complex and since the push command is mostly intended to run in CI, it should be a repeatable single command. |
This is not an option because the syntax and options are totally different, also it will be confusing for user to understand what options should be provided to satisfy required arguments for chosen product (e.g. |
Perhaps we can pick a different command name, to keep things very clear and use that language consistently. How about |
@roman-sainchuk I dislike the context proposal a lot. I like this one a lot:
|
@adamaltman me too, but on order to have the same command name and proper distinguishing between contexts (workflows/BH) we need to pass it even when you want to get the hint, e.g.: REDOCLY_DOMAIN='http://localhost' redocly push --help otherwise it will print workflows version of the |
fee2fb6
to
36c082e
Compare
I suggest moving the |
# Conflicts: # package-lock.json # packages/cli/package.json
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.
Thank you @IgorKarpiuk! Looks much better now. Left one minor comment.
Please don't forget to add a changeset (I believe it's needed here). |
What/Why/How?
Now
push
command also applied for BH push.Syntax for push command:
or
Syntax for
push-status
command:or
Reference
Testing
Screenshots (optional)
Check yourself
Security