[PR #1471] [MERGED] Add internal routes for ssh hook comands #15920

Closed
opened 2025-11-02 11:57:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: masterHead: lunny/internal_routes


📝 Commits (7)

  • c015e57 add internal routes for ssh hook comands
  • af91984 fix lint
  • d4570aa add comment on why package named private not internal but the route name is internal
  • dc5980e add comment above package private why package named private not internal but the route name is internal
  • c76983c remove exp time on internal access
  • 4f2c3a7 move routes from /internal to /api/internal
  • def1241 add comment and defer on UpdatePublicKeyUpdated

📊 Changes

7 files changed (+161 additions, -12 deletions)

View changed files

📝 cmd/serv.go (+2 -1)
📝 cmd/web.go (+6 -0)
📝 models/ssh_key.go (+4 -2)
📝 modules/httplib/httplib.go (+5 -0)
modules/private/internal.go (+53 -0)
📝 modules/setting/setting.go (+47 -9)
routers/private/internal.go (+44 -0)

📄 Description

This is a first part for convert database operation to internal http operation for SSH hook commands. This will reduce the potential concurrent problem when use sqlite or tidb.


🔄 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/1471 **Author:** [@lunny](https://github.com/lunny) **Created:** 4/8/2017 **Status:** ✅ Merged **Merged:** 4/19/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/internal_routes` --- ### 📝 Commits (7) - [`c015e57`](https://github.com/go-gitea/gitea/commit/c015e57a980417e5f0261049bef17e2eacc2c64d) add internal routes for ssh hook comands - [`af91984`](https://github.com/go-gitea/gitea/commit/af91984b492b6418fd7448b58ddf393296bc8c3a) fix lint - [`d4570aa`](https://github.com/go-gitea/gitea/commit/d4570aa0c5d4041b114169ea4189cbcf648ca091) add comment on why package named private not internal but the route name is internal - [`dc5980e`](https://github.com/go-gitea/gitea/commit/dc5980e4cb58e84b1397cf4bd5d398c20aa95912) add comment above package private why package named private not internal but the route name is internal - [`c76983c`](https://github.com/go-gitea/gitea/commit/c76983cdfe6149a0f83809e5dafef8fb1ed35ad7) remove exp time on internal access - [`4f2c3a7`](https://github.com/go-gitea/gitea/commit/4f2c3a7a215d8cbac49efb1d1c12a8cae5767de8) move routes from /internal to /api/internal - [`def1241`](https://github.com/go-gitea/gitea/commit/def124132b263cfbfc8e69913033d51a284a6ad3) add comment and defer on UpdatePublicKeyUpdated ### 📊 Changes **7 files changed** (+161 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `cmd/serv.go` (+2 -1) 📝 `cmd/web.go` (+6 -0) 📝 `models/ssh_key.go` (+4 -2) 📝 `modules/httplib/httplib.go` (+5 -0) ➕ `modules/private/internal.go` (+53 -0) 📝 `modules/setting/setting.go` (+47 -9) ➕ `routers/private/internal.go` (+44 -0) </details> ### 📄 Description This is a first part for convert database operation to internal http operation for SSH hook commands. This will reduce the potential concurrent problem when use sqlite or tidb. --- <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:57:54 -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#15920