1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-08 00:44:26 +00:00
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>
2024-12-25 07:38:30 +00:00
..
assignee_test.go
assignee.go Fix get reviewers' bug (#32415) 2024-11-22 10:44:48 -05:00
comments.go
commit_test.go
commit.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
content.go
issue_test.go
issue.go Issue time estimate, meaningful time tracking (#23113) 2024-12-05 13:07:53 +00:00
label_test.go
label.go
main_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
milestone_test.go demilestone should not include milestone (#32923) 2024-12-25 05:52:46 +00:00
milestone.go demilestone should not include milestone (#32923) 2024-12-25 05:52:46 +00:00
pull.go
reaction_test.go
reaction.go
status.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
template.go refactor: remove redundant err declarations (#32381) 2024-10-30 19:36:24 +00:00