forgejo/routers/api/v1
Earl Warren 9f1302f685 fix(api): issue state change is not idempotent
The PATCH if issue & pull request switched to use the service
functions instead. However, the service function changing the state is
not idempotent. Instead of doing nothing which changing from open to
open or close to close, it will fail with an error like:

 Issue [2472] 0 was already closed

Regression of: 6a4bc0289d

Fixes: https://codeberg.org/forgejo/forgejo/issues/4686
(cherry picked from commit e9e3b8c0f3)
2024-07-25 14:21:00 +00:00
..
activitypub activitypub: warn instead of error 2024-03-24 07:12:31 +01:00
admin Fix empty field login_name in API response JSON when creating user (#30511) (#30516) 2024-04-21 18:07:51 +02:00
misc Port "Fix wrong test usage of AppSubURL" 2024-03-06 21:47:44 +01:00
notify drop log.Error in ReadRepoNotifications 2024-03-24 07:12:31 +01:00
org Missed return on error part of: Fix bug on avatar (#31008) (#31019) 2024-05-31 14:56:16 +02:00
packages remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
repo fix(api): issue state change is not idempotent 2024-07-25 14:21:00 +00:00
settings Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
shared Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
swagger [SWAGGER] Make it consistent with reality 2024-06-19 06:40:17 +00:00
user Missed return on error part of: Fix bug on avatar (#31008) (#31019) 2024-05-31 14:56:16 +02:00
utils Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
api.go Fix #2512 /api/forgejo/v1/version auth check (#2582) 2024-03-19 07:16:19 +00:00