[PR #1514] [MERGED] Drop db operations from hook commands #15938

Closed
opened 2025-11-02 11:58:26 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1514
Author: @lunny
Created: 4/19/2017
Status: Merged
Merged: 5/4/2017
Merged by: @lunny

Base: masterHead: lunny/drop_db_from_hook


📝 Commits (4)

  • 3c48c6f move all database operations from hook command to web command and instead of internal routes
  • 684380e bug fixed
  • 5b33582 adjust the import path sequences
  • 1ee4235 remove unused return value on hookSetup

📊 Changes

8 files changed (+225 additions, -60 deletions)

View changed files

📝 cmd/hook.go (+21 -39)
📝 models/update.go (+21 -21)
modules/private/branch.go (+43 -0)
📝 modules/private/internal.go (+4 -0)
modules/private/push_update.go (+43 -0)
routers/private/branch.go (+30 -0)
📝 routers/private/internal.go (+3 -0)
routers/private/push_update.go (+60 -0)

📄 Description

No description provided


🔄 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/1514 **Author:** [@lunny](https://github.com/lunny) **Created:** 4/19/2017 **Status:** ✅ Merged **Merged:** 5/4/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/drop_db_from_hook` --- ### 📝 Commits (4) - [`3c48c6f`](https://github.com/go-gitea/gitea/commit/3c48c6f768d0f5c7e1bf7a4ac7ec4ba3080984f2) move all database operations from hook command to web command and instead of internal routes - [`684380e`](https://github.com/go-gitea/gitea/commit/684380ede637fd5c4a81d6f832aab680e250468e) bug fixed - [`5b33582`](https://github.com/go-gitea/gitea/commit/5b33582420c93bcc7643d557878913c52d5291cc) adjust the import path sequences - [`1ee4235`](https://github.com/go-gitea/gitea/commit/1ee4235c5b17ae44e0847f8cae98b2ebde360ec8) remove unused return value on hookSetup ### 📊 Changes **8 files changed** (+225 additions, -60 deletions) <details> <summary>View changed files</summary> 📝 `cmd/hook.go` (+21 -39) 📝 `models/update.go` (+21 -21) ➕ `modules/private/branch.go` (+43 -0) 📝 `modules/private/internal.go` (+4 -0) ➕ `modules/private/push_update.go` (+43 -0) ➕ `routers/private/branch.go` (+30 -0) 📝 `routers/private/internal.go` (+3 -0) ➕ `routers/private/push_update.go` (+60 -0) </details> ### 📄 Description _No description provided_ --- <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:58:26 -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#15938