Restore Open PR CTA for commit_push with existing PR
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
ebe44d03a5
commit
99ea16a969
1 file changed
+3
-1
@@ -337,7 +337,9 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
|
||||
const shouldOfferOpenPrCta =
|
||||
(action === "commit_push" || action === "commit_push_pr") &&
|
||||
!!prUrl &&
|
||||
(result.pr.status === "created" || result.pr.status === "opened_existing");
|
||||
(!actionIsDefaultBranch ||
|
||||
result.pr.status === "created" ||
|
||||
result.pr.status === "opened_existing");
|
||||
const shouldOfferCreatePrCta =
|
||||
action === "commit_push" &&
|
||||
!prUrl &&
|
||||
|
||||
Reference in new issue
Block a user