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/routers/api/v1/repo
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>
2 years ago
..
avatar.go Add API for changing Avatars (#25369) 2 years ago
blob.go Implement FSFE REUSE for golang files (#21840) 2 years ago
branch.go Add context parameter to some database functions (#26055) 2 years ago
collaborators.go Add context cache as a request level cache (#22294) 2 years ago
commits.go Filter get single commit (#24613) 2 years ago
file.go Add context parameter to some database functions (#26055) 2 years ago
fork.go Fix `Permission` in API returned repository struct (#25388) 2 years ago
git_hook.go Move `convert` package to services (#22264) 2 years ago
git_ref.go Implement FSFE REUSE for golang files (#21840) 2 years ago
hook.go Fix `Permission` in API returned repository struct (#25388) 2 years ago
hook_test.go Refactor web package and context package (#25298) 2 years ago
issue.go Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago
issue_attachment.go Add context parameter to some database functions (#26055) 2 years ago
issue_comment.go Add context parameter to some database functions (#26055) 2 years ago
issue_comment_attachment.go For API attachments, use API URL (#25639) 2 years ago
issue_dependency.go Add context parameter to some database functions (#26055) 2 years ago
issue_label.go Refactor and enhance issue indexer to support both searching, filtering and paging (#26012) 2 years ago
issue_pin.go Add context parameter to some database functions (#26055) 2 years ago
issue_reaction.go Add context parameter to some database functions (#26055) 2 years ago
issue_stopwatch.go Add context parameter to some database functions (#26055) 2 years ago
issue_subscription.go Add context parameter to some database functions (#26055) 2 years ago
issue_tracked_time.go Add context parameter to some database functions (#26055) 2 years ago
key.go Fix `Permission` in API returned repository struct (#25388) 2 years ago
label.go Allow to archive labels (#26478) 2 years ago
language.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 Fix `Permission` in API returned repository struct (#25388) 2 years ago
milestone.go Move `convert` package to services (#22264) 2 years ago
mirror.go Use correct response code in push mirror creation response in v1_json.tmpl (#25476) 2 years ago
notes.go Filters for GetAllCommits (#24568) 2 years ago
patch.go Sync branches into databases (#22743) 2 years ago
pull.go Filters for GetAllCommits (#24568) 2 years ago
pull_review.go Make more functions use ctx instead of db.DefaultContext (#24068) 2 years ago
release.go For API attachments, use API URL (#25639) 2 years ago
release_attachment.go For API attachments, use API URL (#25639) 2 years ago
release_tags.go For API attachments, use API URL (#25639) 2 years ago
repo.go Support copy protected branch from template repository (#25889) 2 years ago
repo_test.go Refactor web package and context package (#25298) 2 years ago
star.go Add context cache as a request level cache (#22294) 2 years ago
status.go Fix `Permission` in API returned repository struct (#25388) 2 years ago
subscriber.go Add context cache as a request level cache (#22294) 2 years ago
tag.go Add context cache as a request level cache (#22294) 2 years ago
teams.go Add context cache as a request level cache (#22294) 2 years ago
topic.go Replace `interface{}` with `any` (#25686) 2 years ago
transfer.go Fix `Permission` in API returned repository struct (#25388) 2 years ago
tree.go Implement FSFE REUSE for golang files (#21840) 2 years ago
wiki.go Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) 2 years ago