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
[cli] Fix team validation bug where you are apart of a team #10092
Conversation
🦋 Changeset detectedLatest commit: 5c75c83 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
This did fix the issue for me. I think we should add some tests to make sure we preserve this behavior. |
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.
Any way to add a test?
Test added! |
packages/cli/test/unit/util/projects/get-project-by-deployment.test.ts
Outdated
Show resolved
Hide resolved
packages/cli/test/unit/util/projects/get-project-by-deployment.test.ts
Outdated
Show resolved
Hide resolved
….test.ts Co-authored-by: Steven <steven@ceriously.com>
….test.ts Co-authored-by: Steven <steven@ceriously.com>
When consolidating the deployment team validation, a bug was introduced where the command would error if the user was currently using a team. The logic was meant to copy the logic in
getDeploymentByIdOrURL()
: https://github.com/vercel/vercel/blob/main/packages/cli/src/util/deploy/get-deployment-by-id-or-url.ts#L80.