gitea/models/issues
Lunny Xiao 5feb1a6bff
Some checks are pending
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
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
..
assignees_test.go
assignees.go
comment_code.go Refactor markup render system (#32612) 2024-11-24 16:18:57 +08:00
comment_list.go
comment_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
comment.go Issue time estimate, meaningful time tracking (#23113) 2024-12-05 13:07:53 +00:00
content_history_test.go
content_history.go
dependency_test.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
dependency.go
issue_index.go Update golangci-lint to v1.62.2, fix issues (#32845) 2024-12-15 02:31:07 +00:00
issue_label_test.go
issue_label.go
issue_list_test.go
issue_list.go Add issue comment when moving issues from one column to another of the project (#29311) 2024-08-09 01:29:02 +00:00
issue_lock.go
issue_project.go Add option to filter board cards by labels and assignees (#31999) 2024-09-12 03:53:40 +00:00
issue_search.go Add label/author/assignee filters to the user/org home issue list (#32779) 2024-12-11 06:33:24 +00:00
issue_stats.go Add label/author/assignee filters to the user/org home issue list (#32779) 2024-12-11 06:33:24 +00:00
issue_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
issue_update.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
issue_user_test.go
issue_user.go
issue_watch_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
issue_watch.go Strict pagination check (#32548) 2024-11-25 09:56:50 +08:00
issue_xref_test.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
issue_xref.go
issue.go Fix bug of branch/tag selector in the issue sidebar (#32744) 2024-12-13 00:45:06 +00:00
label_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
label.go Strict pagination check (#32548) 2024-11-25 09:56:50 +08:00
main_test.go
milestone_list.go
milestone_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
milestone.go Fix milestone deadline and date related problems (#32339) 2024-11-05 07:46:40 +00:00
pull_list_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
pull_list.go Use batch database operations instead of one by one to optimze api pulls (#32680) 2024-12-11 05:15:06 +08:00
pull_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
pull.go Trim title before insert/update to database to match the size requirements of database (#32498) 2024-11-14 07:19:14 +00:00
reaction.go Strict pagination check (#32548) 2024-11-25 09:56:50 +08:00
review_list.go Use batch database operations instead of one by one to optimze api pulls (#32680) 2024-12-11 05:15:06 +08:00
review_test.go Use batch database operations instead of one by one to optimze api pulls (#32680) 2024-12-11 05:15:06 +08:00
review.go Fix the logic of finding the latest pull review commit ID (#32139) 2024-10-01 01:58:55 +00:00
stopwatch_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
stopwatch.go Strict pagination check (#32548) 2024-11-25 09:56:50 +08:00
tracked_time_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
tracked_time.go Strict pagination check (#32548) 2024-11-25 09:56:50 +08:00