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/services/convert
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
..
activity.go For API attachments, use API URL (#25639) 1 year ago
attachment.go For API attachments, use API URL (#25639) 1 year ago
convert.go Allow Organisations to have a E-Mail (#25082) 12 months ago
git_commit.go Add file status for API "Get a single commit from a repository" (#16205) (#25831) 12 months ago
git_commit_test.go Move `convert` package to services (#22264) 2 years ago
issue.go Allow to archive labels (#26478) 11 months ago
issue_comment.go Add context parameter to some database functions (#26055) 12 months ago
issue_test.go Move `convert` package to services (#22264) 2 years ago
main_test.go Move `convert` package to services (#22264) 2 years ago
mirror.go Fix SyncOnCommit always return false in API of push_mirrors (#23088) 1 year ago
notification.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
package.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
pull.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
pull_review.go Add context cache as a request level cache (#22294) 1 year ago
pull_test.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
release.go For API attachments, use API URL (#25639) 1 year ago
repository.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
status.go refactor improve NoBetterThan (#26126) 12 months ago
user.go Fix API leaking Usermail if not logged in (#25097) 11 months ago
user_test.go Add context cache as a request level cache (#22294) 1 year ago
utils.go Move `convert` package to services (#22264) 2 years ago
utils_test.go Rewrite queue (#24505) 1 year ago
wiki.go Make wiki title supports dashes and improve wiki name related features (#24143) 1 year ago