[PR #5009] [MERGED] Feature: Archive repos #17589

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5009
Author: @kolaente
Created: 10/3/2018
Status: Merged
Merged: 1/23/2019
Merged by: @techknowlogick

Base: masterHead: feature/archive-repos


📝 Commits (10+)

📊 Changes

30 files changed (+436 additions, -243 deletions)

View changed files

📝 models/repo.go (+11 -2)
📝 modules/auth/repo_form.go (+1 -0)
📝 modules/context/repo.go (+10 -1)
📝 options/locale/locale_en-US.ini (+16 -0)
📝 public/css/index.css (+1 -1)
📝 public/less/_base.less (+8 -0)
📝 routers/repo/http.go (+6 -0)
📝 routers/repo/release.go (+1 -1)
📝 routers/repo/setting.go (+41 -0)
📝 routers/repo/view.go (+2 -2)
📝 routers/repo/wiki.go (+2 -2)
📝 routers/routes/routes.go (+17 -17)
📝 templates/explore/repo_list.tmpl (+4 -1)
📝 templates/repo/diff/box.tmpl (+25 -23)
📝 templates/repo/diff/comment_form.tmpl (+1 -1)
📝 templates/repo/empty.tmpl (+20 -12)
📝 templates/repo/header.tmpl (+1 -0)
📝 templates/repo/home.tmpl (+5 -0)
📝 templates/repo/issue/labels.tmpl (+30 -28)
📝 templates/repo/issue/list.tmpl (+9 -7)

...and 10 more files

📄 Description

This pr adds the ability to archive a repo, as described in #1353.

When a repo is archived, it is not possible to push to it, neither the creation of new issues or pull requests. In all lists (~Dashboard/Search/Explore/Profiles), the repo is marked with a tiny inicator if its archived.

Blocked by go-gitea/go-sdk#122

Off-Topic: I actually don't know why this pr shows up with 391 commits 🤔, so if anyone knows how to resolve this, please tell me.

Screenshots

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/5009 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 10/3/2018 **Status:** ✅ Merged **Merged:** 1/23/2019 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `feature/archive-repos` --- ### 📝 Commits (10+) - [`16a96f3`](https://github.com/go-gitea/gitea/commit/16a96f37390c0d8176671841755caba9107427e1) Rebased to gitea-master - [`232f71e`](https://github.com/go-gitea/gitea/commit/232f71e579a27f631022507b6f330213aa00805a) Updated gitea/go-sdk - [`fbf39fe`](https://github.com/go-gitea/gitea/commit/fbf39fef66e29626a256451bb6ec13ff3b779616) Removed unused setting of status code - [`8655d0e`](https://github.com/go-gitea/gitea/commit/8655d0eb865845f0dab772eb5a470c3d32beca57) Added error message if archiving fails - [`6f53048`](https://github.com/go-gitea/gitea/commit/6f5304858250384ffd9d8df05227e689d44d3d9c) updated gitea go-sdk - [`b365cd9`](https://github.com/go-gitea/gitea/commit/b365cd9a0140f567f6160d0279c359ffaddfeee6) Prevent adding/editing/removing of files via web ui when a repo is archived - [`34c1419`](https://github.com/go-gitea/gitea/commit/34c1419b43aa5c28e54b0138c6bccb8b9c832941) generated swagger - [`a7cc8fa`](https://github.com/go-gitea/gitea/commit/a7cc8fa0bc0266ef7c11c8ac3fc15bbb4d6fceaf) fmt - [`3877a2d`](https://github.com/go-gitea/gitea/commit/3877a2d2f91ce542b2a3ff643430fd00ed6e062a) trigger ci - [`9c366eb`](https://github.com/go-gitea/gitea/commit/9c366ebff82eb42f37a672368eb0f84c2b7ea8d6) trigger ci ### 📊 Changes **30 files changed** (+436 additions, -243 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+11 -2) 📝 `modules/auth/repo_form.go` (+1 -0) 📝 `modules/context/repo.go` (+10 -1) 📝 `options/locale/locale_en-US.ini` (+16 -0) 📝 `public/css/index.css` (+1 -1) 📝 `public/less/_base.less` (+8 -0) 📝 `routers/repo/http.go` (+6 -0) 📝 `routers/repo/release.go` (+1 -1) 📝 `routers/repo/setting.go` (+41 -0) 📝 `routers/repo/view.go` (+2 -2) 📝 `routers/repo/wiki.go` (+2 -2) 📝 `routers/routes/routes.go` (+17 -17) 📝 `templates/explore/repo_list.tmpl` (+4 -1) 📝 `templates/repo/diff/box.tmpl` (+25 -23) 📝 `templates/repo/diff/comment_form.tmpl` (+1 -1) 📝 `templates/repo/empty.tmpl` (+20 -12) 📝 `templates/repo/header.tmpl` (+1 -0) 📝 `templates/repo/home.tmpl` (+5 -0) 📝 `templates/repo/issue/labels.tmpl` (+30 -28) 📝 `templates/repo/issue/list.tmpl` (+9 -7) _...and 10 more files_ </details> ### 📄 Description This pr adds the ability to archive a repo, as described in #1353. When a repo is archived, it is not possible to push to it, neither the creation of new issues or pull requests. In all lists (~Dashboard/Search/Explore/Profiles), the repo is marked with a tiny inicator if its archived. Blocked by go-gitea/go-sdk#122 Off-Topic: I actually don't know why this pr shows up with 391 commits :thinking:, so if anyone knows how to resolve this, please tell me. ### Screenshots ![image](https://user-images.githubusercontent.com/13721712/46418877-e9cfd380-c72c-11e8-8c00-73492392c080.png) ![image](https://user-images.githubusercontent.com/13721712/46418755-b55c1780-c72c-11e8-976d-6390d2d3b018.png) ![image](https://user-images.githubusercontent.com/13721712/46418998-30bdc900-c72d-11e8-95b0-24f19d32ed08.png) ![image](https://user-images.githubusercontent.com/13721712/46418935-0a982900-c72d-11e8-89a1-2bacc9a37381.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 14:16:14 -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#17589