Skip to content

[cli] Track git --confirm earlier#12419

Merged
kodiakhq[bot] merged 6 commits intomainfrom
trek/zero-2801-verify-and-correct-tracking-of-confirm-and-yes
Oct 29, 2024
Merged

[cli] Track git --confirm earlier#12419
kodiakhq[bot] merged 6 commits intomainfrom
trek/zero-2801-verify-and-correct-tracking-of-confirm-and-yes

Conversation

@trek
Copy link
Copy Markdown
Contributor

@trek trek commented Oct 29, 2024

Because both --yes and --confirm are technically allowed we want to track both. To handle the fact that --confirm is deprecated is managed with the following pattern:

    output.warn('`--confirm` is deprecated, please use `--yes` instead');
    parsedArgs.flags['--yes'] = parsedArgs.flags['--confirm'];

so we need to ensure we've tracked uses of --confirm before we smoosh them together. @EndangeredMassa and I audited for this pattern and we've done this in all places except vercel git.

vercel git needs access to the value in the outer command before the subcommand is called:

const autoConfirm = Boolean(parsedArgs.flags['--yes']);
const { cwd } = client;
const linkedProject = await ensureLink('git', client, cwd, { autoConfirm });

So the tracking needs to move.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Oct 29, 2024

🦋 Changeset detected

Latest commit: 8903e67

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

@trek trek changed the title [cli] don't track unreachable condition [cli] Track git --confirm earlier Oct 29, 2024
@trek trek marked this pull request as ready for review October 29, 2024 17:52
@kodiakhq kodiakhq bot merged commit b7191a7 into main Oct 29, 2024
@kodiakhq kodiakhq bot deleted the trek/zero-2801-verify-and-correct-tracking-of-confirm-and-yes branch October 29, 2024 19:28
onsclom pushed a commit that referenced this pull request Oct 30, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Minor Changes

- Strongly type `TelemetryClient` subclasses against command
specification ([#12426](#12426))

- Adds `vercel integration remove` to uninstall Marketplace integrations
from the current team
([#12291](#12291))
Adds `vercel integration-resource disconnect` to disconnect Marketplace
integration resources from projects
Adds `vercel integration-resource remove` to delete Marketplace
integration resources

### Patch Changes

- [cli] Make all metrics tracking methods on the store require arguments
([#12422](#12422))

- Support allowHeader from Next.js for filtering request headers during
revalidation ([#12420](#12420))

- [cli] don't track unreachable condition
([#12419](#12419))

- Updated dependencies
\[[`5a6605bbd99c3b4c3f06fc315dd3978fe7801d00`](5a6605b)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/functions@1.5.0

### Minor Changes

- ipAddress: accept headers as input
([#12429](#12429))

## @vercel/[email protected]

### Patch Changes

- Support allowHeader from Next.js for filtering request headers during
revalidation ([#12420](#12420))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`5a6605bbd99c3b4c3f06fc315dd3978fe7801d00`](5a6605b)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`5a6605bbd99c3b4c3f06fc315dd3978fe7801d00`](5a6605b)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Support allowHeader from Next.js for filtering request headers during
revalidation ([#12420](#12420))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`5a6605bbd99c3b4c3f06fc315dd3978fe7801d00`](5a6605b)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`5a6605bbd99c3b4c3f06fc315dd3978fe7801d00`](5a6605b)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Minor Changes

- Strongly type `TelemetryClient` subclasses against command
specification ([#12426](vercel/vercel#12426))

- Adds `vercel integration remove` to uninstall Marketplace integrations
from the current team
([#12291](vercel/vercel#12291))
Adds `vercel integration-resource disconnect` to disconnect Marketplace
integration resources from projects
Adds `vercel integration-resource remove` to delete Marketplace
integration resources

### Patch Changes

- [cli] Make all metrics tracking methods on the store require arguments
([#12422](vercel/vercel#12422))

- Support allowHeader from Next.js for filtering request headers during
revalidation ([#12420](vercel/vercel#12420))

- [cli] don't track unreachable condition
([#12419](vercel/vercel#12419))

- Updated dependencies
\[[`ea72a9f85d9fba806e382ef1a7e52b73f78132d9`](vercel/vercel@ea72a9f)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Minor Changes

- ipAddress: accept headers as input
([#12429](vercel/vercel#12429))

## @vercel/[email protected]

### Patch Changes

- Support allowHeader from Next.js for filtering request headers during
revalidation ([#12420](vercel/vercel#12420))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`ea72a9f85d9fba806e382ef1a7e52b73f78132d9`](vercel/vercel@ea72a9f)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`ea72a9f85d9fba806e382ef1a7e52b73f78132d9`](vercel/vercel@ea72a9f)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Support allowHeader from Next.js for filtering request headers during
revalidation ([#12420](vercel/vercel#12420))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`ea72a9f85d9fba806e382ef1a7e52b73f78132d9`](vercel/vercel@ea72a9f)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`ea72a9f85d9fba806e382ef1a7e52b73f78132d9`](vercel/vercel@ea72a9f)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

4 participants