Add back push success/failure telemetry

- accidentally dropped when removing duplicate function
This commit is contained in:
Mattias Granlund 2024-03-07 20:35:37 +01:00
parent ccd8417626
commit 0311052f24

View File

@ -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',