Skip to content

Commit

Permalink
Merge pull request #648 from salesforcecli/sm/guess-ci-for-install-event
Browse files Browse the repository at this point in the history
feat: guess CI on first-run installs
  • Loading branch information
WillieRuemmele authored Jun 26, 2024
2 parents 7cdf7f3 + ae01edf commit 18336db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/telemetryPrerun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type { JsonMap } from '@salesforce/ts-types';
import enabledCheck from '@salesforce/telemetry/enabledCheck';
import type { TelemetryGlobal } from '../telemetryGlobal.js';
import { debug } from '../debugger.js';
import { guessCISystem } from '../guessCI.js';

declare const global: TelemetryGlobal;

Expand Down Expand Up @@ -122,6 +123,7 @@ const hook: Hook.Prerun = async function (options): Promise<void> {
if (telemetry.firstRun) {
telemetry.record({
eventName: 'INSTALL',
ci: guessCISystem(),
installType:
this.config.binPath?.includes(path.join('sfdx', 'client')) ??
this.config.binPath?.includes(path.join('sf', 'client'))
Expand Down

0 comments on commit 18336db

Please sign in to comment.