feat(assignees): add set, add, and remove assignees APIs (#1045)

Implemented set, add, and remove assignees APIs.
Closes https://gitea.com/gitea/tea/issues/965 and https://gitea.com/gitea/tea/issues/966Reviewed-on: https://gitea.com/gitea/tea/pulls/1045
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Minjie Fang <wingsallen@gmail.com>
This commit is contained in:
Minjie Fang
2026-07-18 00:20:03 +00:00
committed by Lunny Xiao
parent 2d6dcd062f
commit d664c01e18
11 changed files with 434 additions and 27 deletions
+10 -2
View File
@@ -239,7 +239,7 @@ Create an issue on repository
Edit one or more issues
**--add-assignees, -a**="": Comma-separated list of usernames to assign
**--add-assignees, -a**="": Comma-separated list of usernames to assign. Takes precedence over --remove-assignees
**--add-labels, -L**="": Comma-separated list of labels to assign. Takes precedence over --remove-labels
@@ -255,10 +255,14 @@ Edit one or more issues
**--remote, -R**="": Discover Gitea login from remote. Optional
**--remove-assignees**="": Comma-separated list of usernames to remove
**--remove-labels**="": Comma-separated list of labels to remove
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
**--set-assignees**="": Clear all existing assignees and assign comma-separated list of usernames. Takes precedence over --add-assignees and --remove-assignees
**--title, -t**="":
### reopen, open
@@ -423,7 +427,7 @@ Change state of one or more pull requests to 'open'
Edit one or more pull requests
**--add-assignees, -a**="": Comma-separated list of usernames to assign
**--add-assignees, -a**="": Comma-separated list of usernames to assign. Takes precedence over --remove-assignees
**--add-labels, -L**="": Comma-separated list of labels to assign. Takes precedence over --remove-labels
@@ -445,12 +449,16 @@ Edit one or more pull requests
**--remote, -R**="": Discover Gitea login from remote. Optional
**--remove-assignees**="": Comma-separated list of usernames to remove
**--remove-labels**="": Comma-separated list of labels to remove
**--remove-reviewers**="": Comma-separated list of usernames to remove from reviewers
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
**--set-assignees**="": Clear all existing assignees and assign comma-separated list of usernames. Takes precedence over --add-assignees and --remove-assignees
**--title, -t**="":
### review