mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
Delete dev links when repository/issue/pull/branch deleted
This commit is contained in:
@@ -501,6 +501,10 @@ func DeleteBranch(ctx context.Context, doer *user_model.User, repo *repo_model.R
|
||||
return err
|
||||
}
|
||||
|
||||
if err := issues_model.DeleteIssueDevLinkByBranchName(ctx, repo.ID, branchName); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return gitRepo.DeleteBranch(branchName, git.DeleteBranchOptions{
|
||||
Force: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user