forgejo-federation/models/migrations/v1_21
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>
2023-08-14 11:56:14 +02:00
..
main_test.go Support changing labels of Actions runner without re-registration (#24806) 2023-06-13 22:28:31 +08:00
v260.go Fix description of drop custom_labels migration (#25243) 2023-06-14 04:46:55 +00:00
v261.go Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
v262.go Support pull_request_target event (#25229) 2023-06-26 14:33:18 +08:00
v263.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v264.go Drop the correct deleted branch table (#26028) 2023-07-26 08:41:33 +08:00
v265.go Actions Artifacts support uploading multiple files and directories (#24874) 2023-07-21 10:42:01 +08:00
v266.go Remove commit status running and warning to align GitHub (#25839) 2023-07-21 16:24:36 +08:00
v267.go Reduce unnecessary DB queries for Actions tasks (#25199) 2023-07-24 06:11:27 +00:00
v268.go Implement auto-cancellation of concurrent jobs if the event is push (#25716) 2023-07-25 11:15:55 +08:00
v269.go Drop the correct deleted branch table (#26028) 2023-07-26 08:41:33 +08:00
v270.go Fix typo in metadata (#26207) 2023-07-30 23:54:22 +00:00
v271.go Allow to archive labels (#26478) 2023-08-14 11:56:14 +02:00