diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2025-05-27 00:12:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-26 12:12:49 -0400 |
commit | 11ee7ff3bfb21fedf6a069d61149b0b3d51ce7f2 (patch) | |
tree | 36adc1d26f22b5f5e5126275aa92fe4c297c30be /models/git/commit_status_test.go | |
parent | 9b295e984a15f0b903675adfe4ee8bd2c5f7c0d4 (diff) | |
download | gitea-11ee7ff3bfb21fedf6a069d61149b0b3d51ce7f2.tar.gz gitea-11ee7ff3bfb21fedf6a069d61149b0b3d51ce7f2.zip |
fix: return 201 Created for CreateVariable API responses (#34517)
- Change CreateVariable API response status from 204 No Content to 201
Created
- Update related integration tests to expect 201 Created instead of 204
No Content
## :warning: BREAKING :warning:
Change the response status code of the Create Variable API under both
Org and Repo levels to `201` instead of 204.
API SDK: https://gitea.com/gitea/go-sdk/pulls/713
---------
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'models/git/commit_status_test.go')
0 files changed, 0 insertions, 0 deletions