[PR #2657] [MERGED] Refactor duplicated code in repo handlers #16527

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2657
Author: @ethantkoenig
Created: 10/4/2017
Status: Merged
Merged: 10/5/2017
Merged by: @lafriks

Base: masterHead: refactor/repo_handler


📝 Commits (3)

  • a79b704 Refactor duplicated code in repo handlers
  • 0bc5767 ctx.Handle
  • b93b2de Merge branch 'master' into refactor/repo_handler

📊 Changes

1 file changed (+49 additions, -86 deletions)

View changed files

📝 modules/context/repo.go (+49 -86)

📄 Description

Move duplicated code in RepoIDAssignment and RepoAssignment handlers to a helper function. Also removed an unused var and fix a typo


🔄 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/2657 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 10/4/2017 **Status:** ✅ Merged **Merged:** 10/5/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `refactor/repo_handler` --- ### 📝 Commits (3) - [`a79b704`](https://github.com/go-gitea/gitea/commit/a79b70471d7624732098b14c9d5cdf4138cb31b9) Refactor duplicated code in repo handlers - [`0bc5767`](https://github.com/go-gitea/gitea/commit/0bc5767c6caca0c2fbe9431fefdbe58a148c2689) ctx.Handle - [`b93b2de`](https://github.com/go-gitea/gitea/commit/b93b2de35745789de81ac3f478aedd8ade0ae5ab) Merge branch 'master' into refactor/repo_handler ### 📊 Changes **1 file changed** (+49 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `modules/context/repo.go` (+49 -86) </details> ### 📄 Description Move duplicated code in `RepoIDAssignment` and `RepoAssignment` handlers to a helper function. Also removed an unused var and fix a typo --- <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:12:42 -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#16527