Skip to content

Add git-buddy extension - #13116

Merged
raycastbot merged 11 commits into
raycast:mainfrom
gianfrancopiana:ext/git-buddy
Aug 20, 2024
Merged

raycastbot merged 11 commits into
raycast:mainfrom
gianfrancopiana:ext/git-buddy

Conversation

@gianfrancopiana

@gianfrancopiana gianfrancopiana commented Jun 22, 2024 •

Copy link
Copy Markdown
Contributor

Description

Hey Raycast team! This is my first extension submission, and I'm happy to share Git Buddy with you all.

Git Buddy is an opinionated, AI-powered Git assistant designed to simplify your Git workflow. It uses Raycast AI to help with common tasks like writing commit messages, creating PR descriptions, and managing branches.

Commands

  1. AI-Powered Commit Messages: Generate concise and clear commit messages for your current branch using AI.

  2. AI-Assisted PR Descriptions: Create detailed pull request descriptions for your current branch with the help of AI.

  3. Branch Management:

    • List all branches (local and remote) in your repository
    • Easily checkout to a selected branch
    • Generate PR descriptions for any selected branch
    • Quick copy of branch names to clipboard
    • Prune and delete untracked branches
  4. Configurable: Set your repository path, target branch, and preferred AI model for content generation.

Why Git Buddy?

I built this for myself and have been using it daily for while now. But I think it's time to make it available for everyone. Looking forward to your feedback!

Screencast

write-commit-message.mp4
write-pr-description.mp4

git-buddy-2

Checklist

- Update dependencies
- Initial commit
@raycastbot

ghost commented Jun 22, 2024 •

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

You can expect an initial review within five business days.

Once the PR is approved and merged, the extension will be available on our Store.

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Jun 22, 2024
@pernielsentikaer

ghost commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

Hi 👋

Thanks for your contribution 🔥

There is already an extension similar to this in the queue. Could it make sense to join forces to create one?

@gianfrancopiana

ghost commented Jun 28, 2024

Copy link
Copy Markdown
Contributor Author

Hi 👋

Thanks for your contribution 🔥

There is already an extension similar to this in the queue. Could it make sense to join forces to create one?

Thanks for the feedback and collaboration offer! I appreciate the thoughtfulness.

While the extensions might look similar at first glance, Git Buddy offers some unique features:

  • Multi-repo support: Unlike the other extension, Git Buddy isn't limited to a single directory, offering flexibility that I'm sure many developers would need
  • AI-powered commit messages and PR descriptions
  • Streamlined branch management

I've put a lot of thought into keeping Git Buddy efficient and focused. Adding commit viewing would be a big change that could weaken its main purpose. Users might want this feature (and I'm open to feedback), but if I add it, I'd do it very differently from the other extension.

I'd love for the Raycast community to try Git Buddy and share their thoughts. User feedback is crucial for future improvements.

Please let me know if you have any questions. I'm always open to suggestions and discussion.

Thanks for considering!

@mil3na

ghost commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

Hi!

The extension mentioned by Per was not merged yet, but have you taken a look at it? I understand that you put a lot of effort on your extension but the other was submitted first and seems like you both have the same goal. I believe you guys can work together to make this extension one and great. What do you think?

@gianfrancopiana

ghost commented Jul 9, 2024

Copy link
Copy Markdown
Contributor Author

Hi!

The extension mentioned by Per was not merged yet, but have you taken a look at it? I understand that you put a lot of effort on your extension but the other was submitted first and seems like you both have the same goal. I believe you guys can work together to make this extension one and great. What do you think?

Hi Milena!

I appreciate your suggestion, and I have indeed looked at the code of the other extension. But I believe keeping these projects separate is best. Here's why:

  1. My extension works with any repo, anywhere on your computer. No folder constraints.
  2. It goes beyond commit listing, offering AI-powered features and streamlined management. There's virtually no overlap in functionality.
  3. It's an opinionated project with a specific vision for enhancing Git workflows.

While both are Git-related, they serve different purposes. I think diversity in the Raycast ecosystem can benefit users with different needs.

If users express interest in commit listing, it would be a minor addition to this more feature-rich extension. Combining projects over a single, small feature doesn't seem beneficial, especially given the substantial differences in our approaches.

As the sole maintainer, I would be super committed to this project and could ensure quick iterations and consistent vision. This focus would allow me to be highly responsive to user feedback once published. Any specific features you think could enhance it further?

- Refactor branch cleanup and management
- Add branch deletion functionality
- Update AI model options and error handling
- Update dependencies
@raycastbot

ghost commented Jul 23, 2024

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Jul 23, 2024
@gianfrancopiana

ghost commented Jul 23, 2024 •

Copy link
Copy Markdown
Contributor Author

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

FYI @pernielsentikaer @mil3na

@raycastbot raycastbot removed the status: stalled Stalled due inactivity label Jul 23, 2024
@mil3na

ghost commented Jul 25, 2024

Copy link
Copy Markdown
Contributor

@pernielsentikaer what do you think?

@pernielsentikaer

ghost commented Jul 25, 2024

Copy link
Copy Markdown
Contributor

If the other one is closed, I think we can proceed with this one. Maybe even adding some of the features from the other one could be an idea?

@pernielsentikaer pernielsentikaer removed their assignment Jul 25, 2024
@raycastbot

ghost commented Aug 8, 2024

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Aug 8, 2024
@pernielsentikaer

ghost commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

What do you think of this one, @koinzhang? I remember you tested the other PR in the queue with the same name 🙂

@raycastbot raycastbot removed the status: stalled Stalled due inactivity label Aug 9, 2024
@koinzhang

ghost commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

I don't have Raycast AI and some of these commands can't be tested, so I can't make an evaluation

@gianfrancopiana

ghost commented Aug 11, 2024

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer @koinzhang Please let me know if there's any way I can help.

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi 👋

Thanks for your contribution 💪

I have now tested your extension, and I have some feedback ready for you:

  • Is there a way to show an error if something went wrong? I had a modified file that prevented it from switching, but the success toast was still present

  • Maybe we should add the path in a <List.Section /> so the user can see which path it's using

git-buddy 2024-08-12 at 15 19 37

  • Shouldn't Write PR Description use the same branch as selected in List Branches, Write Commit Message didn't ask me about branch

I'm looking forward to testing this extension again 🔥

Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.

Gianfranco Piana added 2 commits August 15, 2024 22:40
- Update @raycast/api to v1810
- Improve PR description cleaning
- Update COMMIT_SUCCESS_MESSAGE punctuation
- Update target branch to base branch
- Add repo path to commit message metadata
- Update branch deletion to force remove
- Add Git operations and branch management
- Add WriteCommitMessage component
- Add PR description component
- Move components to _components directory
- Add BranchItem component and refactor ListBranches
- Remove periods from success messages
- Rename constants folder to _constants
- Add success messages and use in components
- Refactor git-utils and add error constants
- Add Git error handling and refactor operations
- Refactor AI model and Git diff functions
- Remove unused Git lock functions
- Refactor commitChanges function
- Refactor git operations with async queue
- Add repository path display
- Add error handling for branch checkout
@gianfrancopiana

ghost commented Aug 16, 2024

Copy link
Copy Markdown
Contributor Author

Hey @pernielsentikaer, really appreciate your feedback. These are great suggestions.

  • I've improved error handling to show errors in your scenario. Also took this an opportunity to make the code more modular and maintainable.

  • Now all commands have a Repository label. I ended up using the folder name instead of the full path. I found it was more readable:
    image
    image
    image

  • Write PR Description compares the diff to the default base branch - which I've renamed for clarity:
    Raycast 2024-08-15 at 22 41 07
    You can write a PR using a different base branch by going into List Branches, choosing the base branch from the list, and selecting Write PR Description → This Branch:
    image

Please let me know if this last point makes sense.

Thanks!

@pernielsentikaer

ghost commented Aug 20, 2024

Copy link
Copy Markdown
Contributor

Let's get the first version live to see how it goes 🙂

@raycastbot
raycastbot merged commit e8bc8ed into raycast:main Aug 20, 2024
@gianfrancopiana
gianfrancopiana deleted the ext/git-buddy branch August 26, 2024 16:52
@github-actions

ghost commented Aug 27, 2024

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Aug 27, 2024

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@gianfrancopiana).
Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants