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