POST projects/:id/repository/commits API doesn't return stats anymore.
Summary
As describe in the docs POST projects/:id/repository/commits
API should return the commit stats
.
The stats
aren't returned anymore.
Steps to reproduce
curl -X "POST" "http://gitlab.com/api/v4/projects/8/repository/commits?private_token" \
-H 'private_token: 'your_private_token' \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"actions": [
{
"file_path": "test_file",
"action": "create",
"content": "some text"
}
],
"commit_message": "commit message",
"branch": "master"
}'
the response won't include stats
as explained in the docs.
What is the current bug behavior?
The json
response won't include stats
key as expected
What is the expected correct behavior?
The json
response should include the stats
key
Possible fixes
I think it's related to this commit: we didn't pass the stats
param in the POST /projects/:id/repository/commits
API, therefore we don't return the stats any longer.