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
admin
misc
notify
org
packages
repo fix(api): issue state change is not idempotent 2024-07-25 15:16:44 +02:00
settings
shared
swagger Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00
user
utils
api.go Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00