Skip to content

Commit 4034b5f

Browse files
authored
fix(web): simplify the created pull request success row (#25613)
1 parent 451bb45 commit 4034b5f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎apps/web/src/components/GitActionsControl.tsx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,9 +1299,12 @@ export default function GitActionsControl({
12991299
const actionResult = result.value;
13001300
syncThreadBranchAfterGitAction(actionResult);
13011301
if (isPanel) {
1302+
const createdPullRequest = actionResult.pr.status === "created";
13021303
setInlineSuccess({
1303-
title: actionResult.toast.title,
1304-
description: actionResult.toast.description ?? null,
1304+
title: createdPullRequest
1305+
? `Created ${changeRequestTerminology.shortLabel}`
1306+
: actionResult.toast.title,
1307+
description: createdPullRequest ? null : (actionResult.toast.description ?? null),
13051308
scopeKey: successScopeKey,
13061309
});
13071310
return;

0 commit comments

Comments
 (0)