-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Updating issues via API does not work if "state" field is present but unchanged #31871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for your report. I will check it later. |
Emmm, this logic can be traced far before (about 5 years ago). No need to figure out it any more, just need to find a solution to fix it. |
I see. It was part of my fault. But I still think the logic in |
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Sep 1, 2024
@yp05327 thanks for the quick fix. Great work 👍🏻 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
If i try to update an issue via:
The issue is updated just fine but Gitea returns status code 500.
The problem here is the
state
field. Without thestate
field everything works just fine.I think the problem was introduced with a50026e#diff-f33622667aa80c1735ccaef8e7331422504e8c449f691c6847ec4f6737a278cd. @yp05327 maybe you can have a look at it.
The problem occured because Renovate Bot useses the
state
field in its model (see https://github.com/renovatebot/renovate/blob/main/lib/modules/platform/gitea/types.ts#L171-L176) for issue creation / update via the Gitea API.Gitea Version
1.22.1
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
The logs:
The API returns:
Git Version
No response
Operating System
No response
How are you running Gitea?
Docker
Database
SQLite
The text was updated successfully, but these errors were encountered: