-
Notifications
You must be signed in to change notification settings - Fork 441
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(cli): add unattended mode flag to sanity undeploy
#8130
base: next
Are you sure you want to change the base?
feat(cli): add unattended mode flag to sanity undeploy
#8130
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@nkgentile is attempting to deploy a commit to the Sanity Sandbox Team on Vercel. A member of the Team first needs to authorize it. |
d5c39c8
to
84431a2
Compare
sanity undeploy
sanity undeploy
) // User confirms | ||
|
||
await undeployStudioAction( | ||
{extOptions: {yes: true}} as CliCommandArguments<UndeployStudioActionFlags>, |
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.
Think you need the same thing in a few of the other failing tests in this suite
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.
Oh good call––fixed now I believe. I didn't have access to the environment variables to run these locally
Hey @nkgentile, is this still an active PR? Might want to rebase if so |
afb159b
to
330d646
Compare
330d646
to
2ec9981
Compare
@jordanl17 yes, still active and I've just rebased. Ready for your review 🙇🏻 |
Description
Adds a
--yes
(or-y
) flag to theundeploy
command, enabling unattended mode:This flag is particularly useful for CI/CD workflows, such as deploying a feature branch of a Sanity Studio and automatically undeploying it when the corresponding pull request is closed.
What to review
Testing
Notes for release
Updating documentation to include new flag. The help docs for the command have been updated with an example.