]> source.dussan.org Git - gitea.git/commit
Support using label names when changing issue labels (#30943)
authorZettat123 <zettat123@gmail.com>
Mon, 13 May 2024 04:28:53 +0000 (12:28 +0800)
committerGitHub <noreply@github.com>
Mon, 13 May 2024 04:28:53 +0000 (04:28 +0000)
commitb3beaed147466739de0c24fd80206b5af8b71617
tree8c827192a80e864cc2530a6981fa4c2e92ca9cd1
parent2442ead6807528f5791671b8a3aab6629bae66ad
Support using label names when changing issue labels (#30943)

Resolve #30917

Make the APIs for adding labels and replacing labels support both label
IDs and label names so the
[`actions/labeler`](https://github.com/actions/labeler) action can work
in Gitea.

<img width="600px"
src="https://github.com/go-gitea/gitea/assets/15528715/7835c771-f637-4c57-9ce5-e4fbf56fa0d3"
/>
modules/structs/issue_label.go
routers/api/v1/repo/issue_label.go
templates/swagger/v1_json.tmpl
tests/integration/api_issue_label_test.go