You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models
puni9869 cafce3b4b5
Allow to archive labels (#26478)
## Archived labels 

This adds the structure to allow for archived labels.
Archived labels are, just like closed milestones or projects, a medium to hide information without deleting it.
It is especially useful if there are outdated labels that should no longer be used without deleting the label entirely.

## Changes

1. UI and API have been equipped with the support to mark a label as archived
2. The time when a label has been archived will be stored in the DB

## Outsourced for the future

There's no special handling for archived labels at the moment.
This will be done in the future.

## Screenshots

![image](https://github.com/go-gitea/gitea/assets/80308335/208f95cd-42e4-4ed7-9a1f-cd2050a645d4)

![image](https://github.com/go-gitea/gitea/assets/80308335/746428e0-40bb-45b3-b992-85602feb371d)

Part of https://github.com/go-gitea/gitea/issues/25237

---------

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 year ago
..
actions Fix log typo in task.go (#26337) 2 years ago
activities Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex (#26279) 2 years ago
admin Replace `interface{}` with `any` (#25686) 2 years ago
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
auth Pre-register OAuth2 applications for git credential helpers (#26291) 2 years ago
avatars Avoid warning for system setting when start up (#23054) 2 years ago
db Fix NuGet search endpoints (#25613) 1 year ago
dbfs Fix content holes in Actions task logs file (#25560) 2 years ago
fixtures Allow to archive labels (#26478) 1 year ago
git Some fixes of the prompt of new branches (#26257) 2 years ago
issues Allow to archive labels (#26478) 1 year ago
migrations Allow to archive labels (#26478) 1 year ago
organization Remove unused code (#25734) 2 years ago
packages Fix NuGet search endpoints (#25613) 1 year ago
perm some less naked returns (#25682) 2 years ago
project Refactor project templates (#26448) 1 year ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Count only visible repos on profile (#25928) 2 years ago
secret Support configuration variables on Gitea Actions (#24724) 2 years ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Replace `interface{}` with `any` (#25686) 2 years ago
unit Rewrite logger system (#24726) 2 years ago
unittest Replace `interface{}` with `any` (#25686) 2 years ago
user Fix API leaking Usermail if not logged in (#25097) 2 years ago
webhook Replace `interface{}` with `any` (#25686) 2 years ago
error.go Sync branches into databases (#22743) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Merge setting.InitXXX into one function with options (#24389) 2 years ago
migrate.go Add context parameter to some database functions (#26055) 2 years ago
migrate_test.go Add context parameter to some database functions (#26055) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Remove org users who belong to no teams (#24247) 2 years ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Fix unclear `IsRepositoryExist` logic (#24374) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago