Skip to content

Add delete current branch button - #8922

Closed
francopetruu wants to merge 1 commit into
refined-github:mainfrom
francopetruu:delete-current-branch
Closed

francopetruu wants to merge 1 commit into
refined-github:mainfrom
francopetruu:delete-current-branch

Conversation

@francopetruu

Copy link
Copy Markdown

Summary

  • add a “Delete branch” button to the branch info bar on /tree pages
  • link directly to the filtered branches list with the delete action
  • auto-trigger delete button when opening the filtered branches page
  • refs Add button to delete current branch on /tree/ #8617

Test URLs

Screenshot

image

@fregante

Copy link
Copy Markdown
Member

Thanks for the PR!

This a lot longer than I'd like, you can use the API to delete the branch. Search showToast and api.v3 because those are the functions that need to be called here.

Also if this is AI, please review the code before marking it as ready.

@SunsetTechuila

SunsetTechuila commented Jan 31, 2026 •

Copy link
Copy Markdown
Contributor

I would also suggest checking how this looks at narrow resolutions. GitHub's new UI isn't mobile-friendly at all, which means we should be extra careful not to make things worse

GitHub image image

@SunsetTechuila

Copy link
Copy Markdown
Contributor

You may want to remove the text when there's not enough space

@SunsetTechuila

Copy link
Copy Markdown
Contributor

@francopetruu Hello! Do you plan to finish this PR?

@fregante fregante closed this Feb 21, 2026
tojin12341za

This comment was marked as spam.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants