gitea/routers/api
Lunny Xiao 5feb1a6bff
Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467)
The behaviors of closing issues and reopening issues are very different.
So splitting it into two different functions makes it easier to
maintain.

- [x] Split ChangeIssueStatus into CloseIssue and ReopenIssue both at
the service layer and model layer
- [x] Rename `isClosed` to `CloseOrReopen` to make it more readable.
- [x] Add transactions for ReopenIssue and CloseIssue

---------

Co-authored-by: Zettat123 <zettat123@gmail.com>
2024-12-25 07:38:30 +00:00
..
actions Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
packages Fix maven pom inheritance (#32943) 2024-12-25 04:28:37 +00:00
v1 Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2024-12-25 07:38:30 +00:00