-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Can't create file via API #7152
Comments
Looks like you need to supply a message via the error message for the commit gitea/modules/structs/repo_file.go Lines 8 to 28 in 43cf2f3
|
The comment says it is optional and mentions a default message, however I could not find anything to support that in the code. @richmahn Looks like the comments were added in 43cf2f3#diff-ec0f0f34b75aa5b40d1a7e55251a9c35 |
the binding in the struct is "Required" so the json parser will return an error. |
@jolheiser Interesting. I know I brought in the comments from another part of the code and guess that wasn't caught. Will see if message can be optional and will removed the required flag. |
I'll work on fixing this. |
… use default message
Fixed in PR #7324 |
… use default message (go-gitea#7324) * Fixes go-gitea#7152 - Allow create/update/delete message to be empty, use default message * Linting fix * Fix to delete integration tests
[x]
):Description
always: Error: Unprocessable Entity
Screenshots
The text was updated successfully, but these errors were encountered: