MCPcopy Create free account
hub / github.com/cli/cli / RecordExpiringSetupCancelled

Method RecordExpiringSetupCancelled

pkg/cmd/auth/shared/telemetry.go:41–46  ·  view source on GitHub ↗

RecordExpiringSetupCancelled records whether the user cancelled the sign-in at the expiring credential-helper prompt. That prompt, and therefore a cancellation, is only reachable on an expiring login.

(cancelled bool)

Source from the content-addressed store, hash-verified

39// RecordExpiringSetupCancelled records whether the user cancelled the sign-in at the expiring credential-helper prompt.
40// That prompt, and therefore a cancellation, is only reachable on an expiring login.
41func (e *AuthTelemetryEvent) RecordExpiringSetupCancelled(cancelled bool) {
42 if e == nil {
43 return
44 }
45 e.pendingEvent.UpsertDimensions(ghtelemetry.Dimensions{"expiring_setup_cred_helper_cancelled": fmt.Sprintf("%v", cancelled)})
46}
47
48// RecordGitProtocol captures the git operations protocol selected for the host, as "https" or "ssh", or "unset" when no
49// protocol was explicitly selected (a non-interactive login without the git-protocol flag).

Callers 3

LoginFunction · 0.80

Calls 1

UpsertDimensionsMethod · 0.65

Tested by 2