[PR #3043] [MERGED] Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName #16731

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3043
Author: @lunny
Created: 12/1/2017
Status: Merged
Merged: 12/2/2017
Merged by: @lunny

Base: masterHead: lunny/add_GetRepositoryByOwnerAndName


📝 Commits (5)

  • 0f33a24 remove GetRepositoryByRef and add GetRepositoryByOwnerAndName
  • 52df646 fix tests
  • e8b52a3 fix tests bug
  • 165d6e9 some improvements
  • 29ce6dd Merge branch 'master' into lunny/add_GetRepositoryByOwnerAndName

📊 Changes

7 files changed (+42 additions, -66 deletions)

View changed files

📝 cmd/serv.go (+3 -11)
📝 models/error.go (+6 -4)
📝 models/issue.go (+7 -2)
📝 models/repo.go (+15 -16)
📝 modules/context/context.go (+3 -6)
📝 modules/lfs/server.go (+6 -11)
📝 routers/repo/http.go (+2 -16)

📄 Description

This PR changed many places from 2 database query to 1 database query and simple the codes.


🔄 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/3043 **Author:** [@lunny](https://github.com/lunny) **Created:** 12/1/2017 **Status:** ✅ Merged **Merged:** 12/2/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/add_GetRepositoryByOwnerAndName` --- ### 📝 Commits (5) - [`0f33a24`](https://github.com/go-gitea/gitea/commit/0f33a2463a010e21e6c5af04a2c25eb9f2ba0ac1) remove GetRepositoryByRef and add GetRepositoryByOwnerAndName - [`52df646`](https://github.com/go-gitea/gitea/commit/52df646d64016cadbf0f97a1f6329aed99d50c8a) fix tests - [`e8b52a3`](https://github.com/go-gitea/gitea/commit/e8b52a3f43440896b3fd73fd18684adbd2fc2909) fix tests bug - [`165d6e9`](https://github.com/go-gitea/gitea/commit/165d6e9aa97331e8c5be59cb98528ff0698d733d) some improvements - [`29ce6dd`](https://github.com/go-gitea/gitea/commit/29ce6ddeab147f3b98ab5b87d346346fd50001cb) Merge branch 'master' into lunny/add_GetRepositoryByOwnerAndName ### 📊 Changes **7 files changed** (+42 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `cmd/serv.go` (+3 -11) 📝 `models/error.go` (+6 -4) 📝 `models/issue.go` (+7 -2) 📝 `models/repo.go` (+15 -16) 📝 `modules/context/context.go` (+3 -6) 📝 `modules/lfs/server.go` (+6 -11) 📝 `routers/repo/http.go` (+2 -16) </details> ### 📄 Description This PR changed many places from 2 database query to 1 database query and simple the codes. --- <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:17:38 -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#16731