From 0311052f243aa7c600aeea73d9e36b3ca6d591dd Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Thu, 7 Mar 2024 20:35:37 +0100 Subject: [PATCH] Add back push success/failure telemetry - accidentally dropped when removing duplicate function --- gitbutler-ui/src/lib/vbranches/branchController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitbutler-ui/src/lib/vbranches/branchController.ts b/gitbutler-ui/src/lib/vbranches/branchController.ts index c30f71f87..9364da27d 100644 --- a/gitbutler-ui/src/lib/vbranches/branchController.ts +++ b/gitbutler-ui/src/lib/vbranches/branchController.ts @@ -189,10 +189,12 @@ export class BranchController { branchId, withForce }); + posthog.capture('Push Successful'); await this.vbranchService.reload(); return await this.vbranchService.getById(branchId); } catch (err: any) { console.error(err); + posthog.capture('Push Failed', { error: err }); if (err.code === 'errors.git.authentication') { showToast({ title: 'Git push failed',