forgejo/routers/api
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
..
actions
forgejo/v1
packages Remove hardcoded filenames for better readability 2024-07-17 23:20:48 +02:00
shared
v1 fix(api): issue state change is not idempotent 2024-07-25 15:16:44 +02:00