You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/issue
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>
1 month ago
..
assignee.go Fix get reviewers' bug (#32415) 2 months ago
assignee_test.go Performance improvements for pull request list API (#30490) 8 months ago
comments.go Prevent simultaneous editing of comments and issues (#31053) 8 months ago
commit.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 1 month ago
commit_test.go Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 1 year ago
content.go Prevent simultaneous editing of comments and issues (#31053) 8 months ago
issue.go Issue time estimate, meaningful time tracking (#23113) 2 months ago
issue_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
label.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
label_test.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
main_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 3 months ago
milestone.go demilestone should not include milestone (#32923) 1 month ago
milestone_test.go demilestone should not include milestone (#32923) 1 month ago
pull.go Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 9 months ago
reaction.go Add user blocking (#29028) 11 months ago
reaction_test.go Add user blocking (#29028) 11 months ago
status.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 1 month ago
template.go refactor: remove redundant err declarations (#32381) 3 months ago