-
Notifications
You must be signed in to change notification settings - Fork 147
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: update push and push-status commands #1481
Conversation
🦋 Changeset detectedLatest commit: 73e846a 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 success734 tests passing in 102 suites. Report generated by 🧪jest coverage report action from 73e846a |
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.
Couple of suggestions, the docs are currently in a private repo but the pull request for the docs updates should be linked from this pull request.
packages/cli/src/index.ts
Outdated
@@ -179,6 +180,11 @@ yargs | |||
description: 'Maximum execution time in seconds.', | |||
type: 'number', | |||
}, | |||
'ignore-deployment-failures': { |
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.
I think this should be continue-on-error or something along those likes (github uses continue-on-error)
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.
Maybe continue-on-deployment-error
will be better?
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.
We use the term deploy
and not deployment
universally. I'm a stickler for sticking to domain language so I think we shouldn't use the word deployment
whenever we can avoid it. @lesyk-lesyk
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.
Updated to continue-on-deploy-failures
, thanks! @adamaltman
packages/cli/src/index.ts
Outdated
@@ -340,6 +346,11 @@ yargs | |||
type: 'boolean', | |||
default: false, | |||
}, | |||
'ignore-deployment-failures': { |
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.
Suggest that we might rename this option as above
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.
I have renamed this parameter to continue-on-deploy-failures
packages/cli/src/index.ts
Outdated
@@ -179,6 +180,11 @@ yargs | |||
description: 'Maximum execution time in seconds.', | |||
type: 'number', | |||
}, | |||
'ignore-deployment-failures': { |
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.
Also it will need a docs update (in a different repo at the moment I know, it's fine to create the PR or a ticket on the monorepo and link to this PR for now)
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.
I have created a separate task for docs. Thanks.
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.
Had a quick look. Will review in more details a bit later.
d9d4d34
to
0101846
Compare
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.
Left a few minor comments.
ac40017
to
9edd6b3
Compare
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 good. Thank you!
Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com> Co-authored-by: Roman Sainchuk <albuman32@gmail.com>
f7dd65c
to
1513c8e
Compare
What/Why/How?
This PR refactors
push
andpush-status
commands.After this PR, these commands will return the necessary values for use in other places (like GH action).
Stylish output was not changed.
Reference
https://github.com/orgs/Redocly/projects/42?pane=issue&itemId=54045541
Testing
Unit tests, local.
Screenshots (optional)
Check yourself
Security