gitea/routers
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
..
api Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2024-12-25 07:38:30 +00:00
common Refactor tmpl and blob_excerpt (#32967) 2024-12-25 00:51:13 +08:00
install Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
private Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
utils Refactor external URL detection (#29973) 2024-03-22 04:32:40 +08:00
web Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2024-12-25 07:38:30 +00:00
init.go Add sub issue list support (#32940) 2024-12-24 01:54:19 +00:00