[PR #742] [MERGED] Add units concept for modulable functions of a repository #15553

Closed
opened 2025-11-02 11:49:16 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: masterHead: lunny/feature_units


📝 Commits (7)

  • 7193283 Add units concept for modulable functions of a repository
  • f15c32d remove unused comment codes & fix lints and tests
  • 6985491 remove unused comment codes
  • 251e77a use struct config instead of map
  • ff43ace fix lint
  • 9640d02 rm wrong files
  • 52a666b fix tests

📊 Changes

16 files changed (+669 additions, -90 deletions)

View changed files

📝 cmd/web.go (+4 -4)
📝 models/migrations/migrations.go (+4 -2)
models/migrations/v16.go (+117 -0)
📝 models/models.go (+1 -0)
📝 models/repo.go (+121 -29)
📝 models/repo_test.go (+16 -8)
models/repo_unit.go (+137 -0)
models/unit.go (+137 -0)
📝 modules/context/repo.go (+15 -0)
📝 routers/api/v1/api.go (+1 -1)
📝 routers/repo/issue.go (+5 -3)
📝 routers/repo/setting.go (+64 -18)
📝 routers/repo/wiki.go (+5 -3)
📝 routers/user/home.go (+1 -1)
📝 templates/repo/header.tmpl (+21 -3)
📝 templates/repo/settings/options.tmpl (+20 -18)

📄 Description

In this PR, I create a new abstract thing unit. An unit is a function for a repository. Every unit will have a tab UI on repository home page. For example, Code is an unit, Issues is another. Currently, we have 9 unit types. If #733 is merged, then we will have a new unit Reviews. Unit concept will be a basis for many further features in future.


🔄 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/742 **Author:** [@lunny](https://github.com/lunny) **Created:** 1/24/2017 **Status:** ✅ Merged **Merged:** 2/4/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/feature_units` --- ### 📝 Commits (7) - [`7193283`](https://github.com/go-gitea/gitea/commit/719328364772f0f2b890ce104dc90063fa478007) Add units concept for modulable functions of a repository - [`f15c32d`](https://github.com/go-gitea/gitea/commit/f15c32de91afde67f7f719679d37338b3e611247) remove unused comment codes & fix lints and tests - [`6985491`](https://github.com/go-gitea/gitea/commit/698549171918544cf3ff2b8009520ea81f51dff6) remove unused comment codes - [`251e77a`](https://github.com/go-gitea/gitea/commit/251e77a6abdcf1dafdbc24ebae667daef604c23e) use struct config instead of map - [`ff43ace`](https://github.com/go-gitea/gitea/commit/ff43acedee8cad7027a3735be50c28f4337d0ac4) fix lint - [`9640d02`](https://github.com/go-gitea/gitea/commit/9640d021213adfab27828179b66d87ca347d5e47) rm wrong files - [`52a666b`](https://github.com/go-gitea/gitea/commit/52a666bba7008dcc3ad5dde6a66913ca02747ad3) fix tests ### 📊 Changes **16 files changed** (+669 additions, -90 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+4 -4) 📝 `models/migrations/migrations.go` (+4 -2) ➕ `models/migrations/v16.go` (+117 -0) 📝 `models/models.go` (+1 -0) 📝 `models/repo.go` (+121 -29) 📝 `models/repo_test.go` (+16 -8) ➕ `models/repo_unit.go` (+137 -0) ➕ `models/unit.go` (+137 -0) 📝 `modules/context/repo.go` (+15 -0) 📝 `routers/api/v1/api.go` (+1 -1) 📝 `routers/repo/issue.go` (+5 -3) 📝 `routers/repo/setting.go` (+64 -18) 📝 `routers/repo/wiki.go` (+5 -3) 📝 `routers/user/home.go` (+1 -1) 📝 `templates/repo/header.tmpl` (+21 -3) 📝 `templates/repo/settings/options.tmpl` (+20 -18) </details> ### 📄 Description In this PR, I create a new abstract thing unit. An unit is a function for a repository. Every unit will have a tab UI on repository home page. For example, `Code` is an unit, `Issues` is another. Currently, we have 9 unit types. If #733 is merged, then we will have a new unit `Reviews`. Unit concept will be a basis for many further features in future. --- <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:49:16 -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#15553