[PR #478] [MERGED] Improve the way how branches are deleted #15407

Closed
opened 2025-11-02 11:45:52 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/478
Author: @Bwko
Created: 12/25/2016
Status: Merged
Merged: 12/26/2016
Merged by: @bkcsoft

Base: masterHead: fix/DeleteBranches


📝 Commits (1)

  • 2437a25 Improve the way how branches are deleted

📊 Changes

4 files changed (+73 additions, -16 deletions)

View changed files

📝 options/locale/locale_en-US.ini (+8 -1)
📝 routers/repo/branch.go (+36 -6)
📝 routers/repo/issue.go (+15 -5)
📝 templates/repo/issue/view_content.tmpl (+14 -4)

📄 Description

Delete branch from HeadRepo instead of BaseRepo
Prevent the deletion of a master branch
Show a yes/no overlay when you press the delete branch button


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/478 **Author:** [@Bwko](https://github.com/Bwko) **Created:** 12/25/2016 **Status:** ✅ Merged **Merged:** 12/26/2016 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `fix/DeleteBranches` --- ### 📝 Commits (1) - [`2437a25`](https://github.com/go-gitea/gitea/commit/2437a257c300dd7986ee66c738de7f645e7b2370) Improve the way how branches are deleted ### 📊 Changes **4 files changed** (+73 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `options/locale/locale_en-US.ini` (+8 -1) 📝 `routers/repo/branch.go` (+36 -6) 📝 `routers/repo/issue.go` (+15 -5) 📝 `templates/repo/issue/view_content.tmpl` (+14 -4) </details> ### 📄 Description Delete branch from HeadRepo instead of BaseRepo Prevent the deletion of a master branch Show a yes/no overlay when you press the delete branch button --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:45:52 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15407