1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-27 13:39:19 -05:00
forgejo/routers/api/v1
Earl Warren e9e3b8c0f3
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
2024-07-25 15:16:44 +02:00
..
activitypub add more integration testcases 2024-05-21 18:49:31 +02:00
admin Fix empty field login_name in API response JSON when creating user (#30511) 2024-04-21 11:59:16 +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 Fix bug on avatar (#31008) 2024-05-19 13:57:52 +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 15:16:44 +02: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 Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00
user feat(federated-star) star repositories via ActivityPub (#1680) 2024-06-06 08:58:11 +02:00
utils Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
api.go Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00