[PR #3711] [MERGED] Add topic support #17054

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3711
Author: @lunny
Created: 3/23/2018
Status: Merged
Merged: 4/11/2018
Merged by: @lunny

Base: masterHead: lunny/topic


📝 Commits (10+)

📊 Changes

17 files changed (+487 additions, -2 deletions)

View changed files

models/fixtures/repo_topic.yml (+11 -0)
models/fixtures/topic.yml (+13 -0)
📝 models/repo.go (+1 -0)
models/topic.go (+192 -0)
models/topic_test.go (+57 -0)
📝 modules/auth/repo_form.go (+5 -0)
📝 options/locale/locale_en-US.ini (+3 -0)
📝 public/css/index.css (+1 -1)
📝 public/js/index.js (+72 -0)
📝 public/less/_repository.less (+9 -0)
📝 routers/api/v1/api.go (+4 -0)
📝 routers/api/v1/repo/repo.go (+42 -0)
routers/repo/topic.go (+38 -0)
📝 routers/repo/view.go (+10 -0)
📝 routers/routes/routes.go (+4 -0)
📝 templates/explore/repo_list.tmpl (+3 -0)
📝 templates/repo/home.tmpl (+22 -1)

📄 Description

This PR will view a repository's topics and let repositorys owners to manage topics.

Will fix #219

image

image

image

image


🔄 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/3711 **Author:** [@lunny](https://github.com/lunny) **Created:** 3/23/2018 **Status:** ✅ Merged **Merged:** 4/11/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/topic` --- ### 📝 Commits (10+) - [`d07c1d5`](https://github.com/go-gitea/gitea/commit/d07c1d535585cce109a53b2efe34718ce0d58a23) add topic models and unit tests - [`c10a04b`](https://github.com/go-gitea/gitea/commit/c10a04beb30d2d872d8369b84ceb541630af76e2) fix comments - [`1539511`](https://github.com/go-gitea/gitea/commit/1539511d9871842a9d475b4ef87e5622fee56975) fix comment - [`a405d40`](https://github.com/go-gitea/gitea/commit/a405d408ef5a815335beabb28596acbb7d0b6180) add the UI to show or add topics for a repo - [`b634af1`](https://github.com/go-gitea/gitea/commit/b634af1eb023513f2b60af7b04e2021299db1ef3) show topics on repositories list - [`cc5dc73`](https://github.com/go-gitea/gitea/commit/cc5dc7314acf0a028fc41cd114786e8932b94000) fix test - [`4605ee5`](https://github.com/go-gitea/gitea/commit/4605ee5e1d8aeba03d814fccf451bf6e51954305) don't show manage topics link when no permission - [`7373966`](https://github.com/go-gitea/gitea/commit/7373966c7abbd0824e3d816137014025504542f6) use green basic as topic label - [`0af3841`](https://github.com/go-gitea/gitea/commit/0af38410fe4f45e254e4d68c5b99e07d5ac327a1) fix topic label color - [`0b8190f`](https://github.com/go-gitea/gitea/commit/0b8190fc75819afdea9d46975098150199b6bc8e) remove trace content ### 📊 Changes **17 files changed** (+487 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `models/fixtures/repo_topic.yml` (+11 -0) ➕ `models/fixtures/topic.yml` (+13 -0) 📝 `models/repo.go` (+1 -0) ➕ `models/topic.go` (+192 -0) ➕ `models/topic_test.go` (+57 -0) 📝 `modules/auth/repo_form.go` (+5 -0) 📝 `options/locale/locale_en-US.ini` (+3 -0) 📝 `public/css/index.css` (+1 -1) 📝 `public/js/index.js` (+72 -0) 📝 `public/less/_repository.less` (+9 -0) 📝 `routers/api/v1/api.go` (+4 -0) 📝 `routers/api/v1/repo/repo.go` (+42 -0) ➕ `routers/repo/topic.go` (+38 -0) 📝 `routers/repo/view.go` (+10 -0) 📝 `routers/routes/routes.go` (+4 -0) 📝 `templates/explore/repo_list.tmpl` (+3 -0) 📝 `templates/repo/home.tmpl` (+22 -1) </details> ### 📄 Description This PR will view a repository's topics and let repositorys owners to manage topics. Will fix #219 ![image](https://user-images.githubusercontent.com/81045/37875072-dcaeac00-306c-11e8-80c6-de54edcdcbaf.png) ![image](https://user-images.githubusercontent.com/81045/37875076-e6ff4ff2-306c-11e8-933f-b3114146dbd8.png) ![image](https://user-images.githubusercontent.com/81045/37875314-90ab9b44-306f-11e8-9293-b1e92121bb36.png) ![image](https://user-images.githubusercontent.com/81045/37875316-a11fee94-306f-11e8-94ce-09445e6e3f44.png) --- <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:25:13 -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#17054