Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kamilwaz
Copy link
Contributor

This PR adds support for deleting branches from the branch menu. If a branch hasn't been merged into upstream or HEAD, the operation must be confirmed (similar to how to git branch -d ... works).

@kamilwaz kamilwaz marked this pull request as ready for review May 14, 2025 20:11
Copy link
Owner

@altsem altsem left a comment

Choose a reason for hiding this comment

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

feat: add delete branch goes straight to the changelog (we've got changelog generation set up).
So perhaps something just a little more descriptive to the users would be nice.

There is actually another place where this same "prompt y or n to delete branch" should be happening, and that is in the "discard" action. Not a requirement for this PR, include it if you wish, else we'll fix it later.

relates to: #350

@codecov
Copy link

codecov bot commented May 20, 2025

Codecov Report

Attention: Patch coverage is 95.32710% with 5 lines in your changes missing coverage. Please review.

Project coverage is 88.28%. Comparing base (164f8a6) to head (b5e5d86).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/error.rs 25.00% 3 Missing ⚠️
src/git/mod.rs 94.44% 1 Missing ⚠️
src/ops/branch.rs 97.72% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #367      +/-   ##
==========================================
+ Coverage   88.21%   88.28%   +0.06%     
==========================================
  Files          66       67       +1     
  Lines        6668     6750      +82     
==========================================
+ Hits         5882     5959      +77     
- Misses        786      791       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kamilwaz kamilwaz changed the title feat: add delete branch feat: add delete option to branch menu May 20, 2025
@kamilwaz kamilwaz requested a review from altsem May 20, 2025 18:36
Copy link
Owner

Choose a reason for hiding this comment

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

This snapshot seems stale

Copy link
Owner

@altsem altsem left a comment

Choose a reason for hiding this comment

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

ill merge it, gj!

@altsem altsem merged commit 5929c22 into altsem:master May 20, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants