authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-15 00:02:35-08:00
committergravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-15 00:02:35-08:00
log0c26396f79b94f8212d3c62d0514dc4188866ee7
treee2435e6e269ee50748538ce5e2a3123a76c9f9d3
parentcc37865c2defa56cd753dfc6bf61e7371fa3f059

Omit empty push target and track branch in action deps

- Only include `pushTarget` in analytics payload when it exists - Add `gitStatus.branch` to callback dependencies to keep telemetry current

1 files changed, 2 insertions(+), 1 deletions(-)

apps/web/src/components/GitActionsControl.tsx+2-1
......@@ -232,7 +232,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
232232 hasCustomCommitMessage: !!commitMessage?.trim(),
233233 hasWorkingTreeChanges: !!gitStatus?.hasWorkingTreeChanges,
234234 forcePushOnly: forcePushOnlyProgress,
235 pushTarget,
235 ...(pushTarget ? { pushTarget } : {}),
236236 });
237237 const progressToastId = toastManager.add({
238238 type: "loading",
......@@ -325,6 +325,7 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
325325 },
326326 [
327327 api,
328 gitStatus?.branch,
328329 gitStatus?.hasWorkingTreeChanges,
329330 gitStatus?.openPr?.url,
330331 isDefaultBranch,