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)
| 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. |
| 41 | func (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). |