Skip to content
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

Docs: revised the push command for openapi-cli #363

Merged
merged 16 commits into from Nov 24, 2021
Merged

Docs: revised the push command for openapi-cli #363

merged 16 commits into from Nov 24, 2021

Conversation

bandantonio
Copy link
Contributor

What/Why/How?

Reference

Testing

Screenshots (optional)

Check yourself

  • Code is linted
  • Tested with redoc/reference-docs/workflows
  • All new/updated code is covered with tests

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
Copy link
Member

@adamaltman adamaltman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: The branchName seems to be removed from all the examples. It is a common use case.

docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
Copy link
Contributor

@swapnilogale swapnilogale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of suggestions

docs/commands/push.md Show resolved Hide resolved
:::

By default, the `push` command only updates an existing API definition version. If an API with the provided name and version doesn't exist in your organization, it will not be created automatically, and the command will exit with an error exit code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: maybe reword this "..the command will display an error code before exiting"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@ivana-isadora ivana-isadora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! 👏 I've only got a few questions remaining.

docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
By default, the `push` command only updates an existing API definition version. If an API with the provided name and version doesn't exist in your organization, it will not be created automatically. Proceed to the [Create a new API with push](#create-a-new-api-with-push) section for more details on how to create an API manually.

:::warning
Note that only API definitions with a CI source can be updated with the `push` command. Attempting to update API definitions created from other sources will fail with an error.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it's not how it works. I believe it will override the source type of the definition. Someone need to double check..

docs/commands/login.md Outdated Show resolved Hide resolved
docs/commands/login.md Outdated Show resolved Hide resolved
Copy link
Contributor

@swapnilogale swapnilogale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @bandantonio!

docs/commands/login.md Outdated Show resolved Hide resolved

To work with the API registry without granting Redocly Workflows access to your repositories, you can use the OpenAPI CLI `push` command and set up your own CI pipeline to update API definitions without granting Redocly Workflows access to your repositories. This way, you can:

- Control the frequency of API definition updates.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How? I don't think it gives any additional control.

docs/commands/login.md Outdated Show resolved Hide resolved
docs/commands/login.md Outdated Show resolved Hide resolved
docs/commands/login.md Outdated Show resolved Hide resolved
docs/commands/login.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
docs/commands/push.md Outdated Show resolved Hide resolved
@adamaltman adamaltman merged commit 5e7b82f into Redocly:master Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants