gitea/routers/api/v1/repo
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
..
action.go Set owner id to zero when GetRegistrationToken for repo (#31725) 2024-07-29 18:46:45 +00:00
avatar.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
blob.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
branch.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
collaborators.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
commits.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
compare.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
download.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
file.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
fork.go Refactor find forks and fix possible bugs that weak permissions check (#32528) 2024-11-18 03:06:25 +00:00
git_hook.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
git_ref.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
hook.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
hook_test.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2024-12-25 07:38:30 +00:00
issue_attachment.go Include file extension checks in attachment API (#32151) 2024-11-06 21:34:32 +00:00
issue_comment.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_comment_attachment.go Include file extension checks in attachment API (#32151) 2024-11-06 21:34:32 +00:00
issue_dependency.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_label.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_pin.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_reaction.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_stopwatch.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_subscription.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_tracked_time.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
key.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
label.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
language.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
license.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
migrate.go Move some errors to their own sub packages (#32880) 2024-12-20 18:05:29 +00:00
milestone.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
mirror.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
notes.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
patch.go Move some errors to their own sub packages (#32880) 2024-12-20 18:05:29 +00:00
pull.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2024-12-25 07:38:30 +00:00
pull_review.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
release.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
release_attachment.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
release_tags.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
repo.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
repo_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
star.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
status.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
subscriber.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
tag.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
teams.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
topic.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
transfer.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
tree.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
wiki.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00