Skip to content

Add CreatePullRequest action#42959

Merged
dinocosta merged 12 commits intozed-industries:mainfrom
tommyming:feature/pull-request-dialog-disable-dismiss
Jan 5, 2026
Merged

Add CreatePullRequest action#42959
dinocosta merged 12 commits intozed-industries:mainfrom
tommyming:feature/pull-request-dialog-disable-dismiss

Conversation

@tommyming
Copy link
Contributor

@tommyming tommyming commented Nov 18, 2025

Closes #42217

Release Notes:

  • Added git: create pull request command to open a pull request for the current branch

For more details, please refer to the issue, thank you.

@cla-bot
Copy link

cla-bot bot commented Nov 18, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @tommyming on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-industries-bot
Copy link
Contributor

zed-industries-bot commented Nov 18, 2025

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against 55981e8

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 20, 2025
@tommyming tommyming marked this pull request as ready for review November 20, 2025 10:21
@MrSubidubi MrSubidubi changed the title Feature/pull request dialog disable dismiss Add CreatePullRequest action Nov 20, 2025
@esthertrapadoux
Copy link

@tommyming just following up to let you know the team went pretty deep in more git feature work and we got behind on PR reviews. We're ramping back up and appreciate the patience! 👍

@tommyming
Copy link
Contributor Author

tommyming commented Dec 3, 2025

@esthertrapadoux Thanks for the update!
Glad that this PR got into Quality Week!
Please take your time and keep up the good work!

@cole-miller cole-miller assigned dinocosta and unassigned cole-miller Dec 15, 2025
Copy link
Member

@dinocosta dinocosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @tommyming , thank you for opening this. This is a helpful feature, and the test inclusion is appreciated! ✌️

Overall the changes look good, but there are a couple of places where we can improve the implementation and a small edge case we’re not handling correctly. Let me know if you have any questions.

@tommyming
Copy link
Contributor Author

@dinocosta Thanks a lot for the review!

@agu-z agu-z moved this from Community PRs to In progress in Quality Week – December 2025 Dec 17, 2025
Copy link
Member

@dinocosta dinocosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking the time to tackle the feedback @tommyming ! I've just taken another look at the changes and it's looking good to me!

I've still left some comments on optional changes you could make, so let me know if you want to tackle those, otherwise I can go ahead and do that myself and get this merged 🚢

P.S.: You might want to merge main into this branch, as we've recently done some data migration so cargo run will fail in this branch in case you've got and older schema in your development database.

@tommyming
Copy link
Contributor Author

I've still left some comments on optional changes you could make, so let me know if you want to tackle those, otherwise I can go ahead and do that myself and get this merged 🚢

P.S.: You might want to merge main into this branch, as we've recently done some data migration so cargo run will fail in this branch in case you've got and older schema in your development database.

Thanks for the code enhancement review @dinocosta!
I will make the enhancement within today, and rebase the main branch to here.

Merry Christmas!

@tommyming tommyming force-pushed the feature/pull-request-dialog-disable-dismiss branch from 6a553fc to 5622aa3 Compare December 23, 2025 06:09
@tommyming
Copy link
Contributor Author

@dinocosta just committed, please review when you are free, or you can just edit after merge, both are fine for me. 😀

Fix issue in `GitPanel.create_pull_request` that panicked when showing
an error toast. `show_error_toast` attempts to update the workspace, but
the workspace is already borrowed when handling the `CreatePullRequest`
action, causing "cannot update workspace::Workspace while it is already
being updated".

Use `cx.defer_in` to show the error toast after the current update cycle
completes.

Also remove an unused import and lowercase "Create Pull Request" to
match other commands.
Copy link
Member

@dinocosta dinocosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for tackling the proposed changes @tommyming !

While testing these new changes, I noticed that there was a panic when git: create pull request failed and the error toast should be shown. I ended up pushing 6873f2f to handle this and removed an unused import.

Will merge after CI/CD passes! ✌️

@dinocosta dinocosta merged commit 06a623e into zed-industries:main Jan 5, 2026
23 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in Quality Week – December 2025 Jan 5, 2026
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Closes zed-industries#42217 

Release Notes:
- Added/Fixed/Improved ...
added "Create Pull Request" Command when searching on the command
Palette

For more details, please refer to the issue, thank you.

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Closes zed-industries#42217 

Release Notes:
- Added/Fixed/Improved ...
added "Create Pull Request" Command when searching on the command
Palette

For more details, please refer to the issue, thank you.

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Feb 15, 2026
Closes zed-industries#42217 

Release Notes:
- Added/Fixed/Improved ...
added "Create Pull Request" Command when searching on the command
Palette

For more details, please refer to the issue, thank you.

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

Development

Successfully merging this pull request may close these issues.

Git: Create Pull Request dialog disappears on focus loss

5 participants