| ... | ... | @@ -215,13 +215,16 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp |
| 215 | 215 | action, |
| 216 | 216 | commitMessage, |
| 217 | 217 | forcePushOnlyProgress = false, |
| 218 | onConfirmed, |
| 218 | 219 | }: { |
| 219 | 220 | action: GitStackedAction; |
| 220 | 221 | commitMessage?: string; |
| 221 | 222 | forcePushOnlyProgress?: boolean; |
| 223 | onConfirmed?: () => void; |
| 222 | 224 | }) => { |
| 223 | 225 | const confirmed = await maybeConfirmPushToDefaultBranch(action); |
| 224 | 226 | if (!confirmed) return; |
| 227 | onConfirmed?.(); |
| 225 | 228 | |
| 226 | 229 | const progressStages = buildGitActionProgressStages({ |
| 227 | 230 | action, |
| ... | ... | @@ -274,19 +277,19 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp |
| 274 | 277 | title: resultToast.title, |
| 275 | 278 | description: resultToast.description, |
| 276 | 279 | timeout: 0, |
| 277 | | ...(shouldOfferPushCta |
| 278 | | ? { |
| 279 | | actionProps: { |
| 280 | | children: "Push", |
| 281 | | onClick: () => { |
| 282 | | closeResultToast(); |
| 283 | | void runGitActionWithToast({ |
| 284 | | action: "commit_push", |
| 285 | | forcePushOnlyProgress: true, |
| 286 | | }); |
| 287 | | }, |
| 288 | | }, |
| 289 | | } |
| 280 | ...(shouldOfferPushCta |
| 281 | ? { |
| 282 | actionProps: { |
| 283 | children: "Push", |
| 284 | onClick: () => { |
| 285 | void runGitActionWithToast({ |
| 286 | action: "commit_push", |
| 287 | forcePushOnlyProgress: true, |
| 288 | onConfirmed: closeResultToast, |
| 289 | }); |
| 290 | }, |
| 291 | }, |
| 292 | } |
| 290 | 293 | : shouldOfferOpenPrCta |
| 291 | 294 | ? { |
| 292 | 295 | actionProps: { |