feature: archive repository #556

Closed
opened 2025-11-02 03:28:03 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @ghost on GitHub (Mar 21, 2017).

I have some repositories uploaded to my gitea installation which are not used any longer but to which I need read access. We should implement a feature which makes it possible to "archive" a repository so you cannot push, create issues, comment or do anything else which may change it. There should be a notice "This project is archived." but you should be able to access everything in a read-only mode.

This prevents these repos from accidental pushes and a visitor will see that this repo is not maintained.

Originally created by @ghost on GitHub (Mar 21, 2017). I have some repositories uploaded to my gitea installation which are not used any longer but to which I need read access. We should implement a feature which makes it possible to "archive" a repository so you cannot push, create issues, comment or do anything else which may change it. There should be a notice "This project is archived." but you should be able to access everything in a read-only mode. This prevents these repos from accidental pushes and a visitor will see that this repo is not maintained.
GiteaMirror added the type/featureissue/confirmed labels 2025-11-02 03:28:03 -06:00
Author
Owner

@bkcsoft commented on GitHub (Apr 18, 2017):

Should be fairly simple to just add a Archived-flag in the DB :)

@bkcsoft commented on GitHub (Apr 18, 2017): Should be fairly simple to just add a `Archived`-flag in the DB :)
Author
Owner

@monkeyhybrid commented on GitHub (May 9, 2018):

GitLab has such a feature and if I remember correctly, as well as making the repo read-only, it hides it from the dashboard and removes it from searches too, which keeps things really tidy. This is a real bonus when you have many more 'stale' repos than active ones. And of course, you can always un-archive it in the future if you wish to continue work on the repo.

GitHub does something similar, but doesn't remove the archived repo from the dashboard (which can be annoying when you have lots of archived repos).

As it stands now in Gitea, I currently rename my stale repositories, adding -Archive-2017 to their name, for example, but this still leaves them cluttering the dashboard and obviously does nothing to make them read-only. I'd love for Gitea to offer archive functionality in the same manner as GitLab does it. If I can help by providing any further details or testing, I will gladly do so.

@monkeyhybrid commented on GitHub (May 9, 2018): GitLab has such a feature and if I remember correctly, as well as making the repo read-only, it hides it from the dashboard and removes it from searches too, which keeps things really tidy. This is a real bonus when you have many more 'stale' repos than active ones. And of course, you can always un-archive it in the future if you wish to continue work on the repo. GitHub does something similar, but doesn't remove the archived repo from the dashboard (which can be annoying when you have lots of archived repos). As it stands now in Gitea, I currently rename my stale repositories, adding `-Archive-2017` to their name, for example, but this still leaves them cluttering the dashboard and obviously does nothing to make them read-only. I'd love for Gitea to offer archive functionality in the same manner as GitLab does it. If I can help by providing any further details or testing, I will gladly do so.
Author
Owner

@lafriks commented on GitHub (May 9, 2018):

@monkeyhybrid what do you mean with dashboard?

@lafriks commented on GitHub (May 9, 2018): @monkeyhybrid what do you mean with dashboard?
Author
Owner

@monkeyhybrid commented on GitHub (May 9, 2018):

@lafriks In the Gitea web app, you have a Dashboard link at the top. Clicking this brings up a page showing recent activity in the main content area, and a list of repositories on the right hand side. It may be called something else in GitHub, although I think the same in GitLab, but roughly the same thing exists in both.

A list of repositories is also shown when clicking on Explore.

If an archive feature is added to Gitea, as well as making a repo read-only, it would be nice if archived repositories are not shown in these lists, and search results, or at least have an option to include / exclude archived repositories. This would remove a lot of clutter for those of us with lots of stale repositories (that we don't want to delete).

@monkeyhybrid commented on GitHub (May 9, 2018): @lafriks In the Gitea web app, you have a Dashboard link at the top. Clicking this brings up a page showing recent activity in the main content area, and a list of repositories on the right hand side. It may be called something else in GitHub, although I think the same in GitLab, but roughly the same thing exists in both. A list of repositories is also shown when clicking on Explore. If an archive feature is added to Gitea, as well as making a repo read-only, it would be nice if archived repositories are not shown in these lists, and search results, or at least have an option to include / exclude archived repositories. This would remove a lot of clutter for those of us with lots of stale repositories (that we don't want to delete).
Author
Owner

@AndyHee commented on GitHub (Jul 6, 2018):

The possibility of irreversibly setting a repo to read-only would definitely be a very useful feature for archiving purposes.

@AndyHee commented on GitHub (Jul 6, 2018): The possibility of irreversibly setting a repo to _read-only_ would definitely be a very useful feature for archiving purposes.
Author
Owner

@bram-dingelstad commented on GitHub (Aug 29, 2018):

This feature would mean a world of difference for me, I have a lot of smaller ideas that I want to keep around but not cluttering the rest of the application/repositories!

@bram-dingelstad commented on GitHub (Aug 29, 2018): This feature would mean a world of difference for me, I have a lot of smaller ideas that I want to keep around but not cluttering the rest of the application/repositories!
Author
Owner

@stale[bot] commented on GitHub (Jan 11, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 11, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@adelowo commented on GitHub (Feb 10, 2019):

This can be closed

@adelowo commented on GitHub (Feb 10, 2019): This can be closed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#556