Remove create PR success toast
Removes the newly-created pull request success toast from create PR flows while preserving existing-review and error feedback.
This commit is contained in:
parent
6a8bacae4c
commit
a37f299977
|
|
@ -142,12 +142,6 @@ export function CreatePullRequestDialog({
|
|||
worktreePath
|
||||
})
|
||||
if (result.ok) {
|
||||
toast.success(`Pull request #${result.number} created`, {
|
||||
action: {
|
||||
label: 'Open on GitHub',
|
||||
onClick: () => window.api.shell.openUrl(result.url)
|
||||
}
|
||||
})
|
||||
await onCreated(result)
|
||||
onOpenChange(false)
|
||||
return
|
||||
|
|
|
|||
|
|
@ -2293,12 +2293,6 @@ function SourceControlInner(): React.JSX.Element {
|
|||
})
|
||||
|
||||
if (result.ok) {
|
||||
toast.success(`Pull request #${result.number} created`, {
|
||||
action: {
|
||||
label: 'Open on GitHub',
|
||||
onClick: () => window.api.shell.openUrl(result.url)
|
||||
}
|
||||
})
|
||||
await handlePullRequestCreated(result)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue