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

Method RecordHelperBefore

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

RecordHelperBefore captures the git credential helper configured before login reconfigured it, as one of "ours", "other", "none", or "error" when the helper could not be read.

(category string)

Source from the content-addressed store, hash-verified

60// RecordHelperBefore captures the git credential helper configured before login reconfigured it, as one of "ours",
61// "other", "none", or "error" when the helper could not be read.
62func (e *AuthTelemetryEvent) RecordHelperBefore(category string) {
63 if e == nil {
64 return
65 }
66 e.pendingEvent.UpsertDimensions(ghtelemetry.Dimensions{"git_credential_helper_before": category})
67}
68
69// RecordHelperAfter captures the git credential helper configured after login completed, as one of "ours", "other",
70// "none", or "error" when the helper could not be read.

Callers 4

refreshRunFunction · 0.80
LoginFunction · 0.80

Calls 1

UpsertDimensionsMethod · 0.65

Tested by 2