diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-12-24 23:38:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-25 07:38:30 +0000 |
commit | 5feb1a6bff6b6931ebe197258032557f55e32c6c (patch) | |
tree | 48e3aeb50c12c6bbffa86b0bea7cc9b22c1baf51 /models/migrations/v1_15/v186.go | |
parent | f44712f22bc7bfce049c64c27f60453ff1e41a5c (diff) | |
download | gitea-main.tar.gz gitea-main.zip |
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>
Diffstat (limited to 'models/migrations/v1_15/v186.go')
0 files changed, 0 insertions, 0 deletions