[PR #1776] [MERGED] Delete repo redirects on repo deletion #16047

Closed
opened 2025-11-02 12:01:05 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1776
Author: @ethantkoenig
Created: 5/22/2017
Status: Merged
Merged: 5/23/2017
Merged by: @appleboy

Base: masterHead: delete_redirect


📝 Commits (1)

  • 5af9795 Delete repo redirects on repo deletion

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 models/repo.go (+1 -0)

📄 Description

Delete entries from repo_redirect table when a repo is deleted.

To the best of my knowledge, failing to delete stale repo redirects doesn't currently cause any bugs, but there's no reason not to delete them.


🔄 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/1776 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 5/22/2017 **Status:** ✅ Merged **Merged:** 5/23/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `delete_redirect` --- ### 📝 Commits (1) - [`5af9795`](https://github.com/go-gitea/gitea/commit/5af9795922f34cb8bfba287708b3e091cba5f507) Delete repo redirects on repo deletion ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+1 -0) </details> ### 📄 Description Delete entries from `repo_redirect` table when a repo is deleted. To the best of my knowledge, failing to delete stale repo redirects doesn't currently cause any bugs, but there's no reason not to delete them. --- <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 12:01:05 -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#16047