gitea/services/issue
Lunny Xiao 5feb1a6bff
Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` ()
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
..
assignee.go Fix get reviewers' bug () 2024-11-22 10:44:48 -05:00
assignee_test.go Performance improvements for pull request list API () 2024-05-31 12:10:11 +00:00
comments.go Prevent simultaneous editing of comments and issues () 2024-05-27 15:34:18 +00:00
commit.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` () 2024-12-25 07:38:30 +00:00
commit_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org () 2023-09-14 02:59:53 +00:00
content.go Prevent simultaneous editing of comments and issues () 2024-05-27 15:34:18 +00:00
issue.go Issue time estimate, meaningful time tracking () 2024-12-05 13:07:53 +00:00
issue_test.go Penultimate round of `db.DefaultContext` refactor () 2023-10-11 04:24:07 +00:00
label.go Penultimate round of `db.DefaultContext` refactor () 2023-10-11 04:24:07 +00:00
label_test.go Next round of `db.DefaultContext` refactor () 2023-09-16 14:39:12 +00:00
main_test.go Move AddCollabrator and CreateRepositoryByExample to service layer () 2024-11-07 11:28:11 +08:00
milestone.go demilestone should not include milestone () 2024-12-25 05:52:46 +00:00
milestone_test.go demilestone should not include milestone () 2024-12-25 05:52:46 +00:00
pull.go Update misspell to 0.5.1 and add `misspellings.csv` () 2024-04-27 08:03:49 +00:00
reaction.go Add user blocking () 2024-03-04 08:16:03 +00:00
reaction_test.go Add user blocking () 2024-03-04 08:16:03 +00:00
status.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` () 2024-12-25 07:38:30 +00:00
template.go refactor: remove redundant err declarations () 2024-10-30 19:36:24 +00:00