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

[cli] Fix team validation bug where you are apart of a team #10092

Merged
merged 5 commits into from Jun 12, 2023

Conversation

cb1kenobi
Copy link
Contributor

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.

@changeset-bot
Copy link

changeset-bot bot commented Jun 9, 2023

🦋 Changeset detected

Latest commit: 5c75c83

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vercel Patch

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

@cb1kenobi cb1kenobi added area: cli semver: minor PR contains new features pr: automerge Automatically merge the PR when checks pass labels Jun 9, 2023
@EndangeredMassa
Copy link
Contributor

This did fix the issue for me. I think we should add some tests to make sure we preserve this behavior.

Copy link
Member

@styfle styfle left a 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?

@cb1kenobi
Copy link
Contributor Author

Test added!

Chris Barber and others added 2 commits June 9, 2023 17:20
….test.ts

Co-authored-by: Steven <steven@ceriously.com>
….test.ts

Co-authored-by: Steven <steven@ceriously.com>
@kodiakhq kodiakhq bot merged commit d61a1a7 into main Jun 12, 2023
103 checks passed
@kodiakhq kodiakhq bot deleted the chrisbarber/get-project-team-bug branch June 12, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cli pr: automerge Automatically merge the PR when checks pass semver: minor PR contains new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants