Authorization: Bearer ********************
curl --location --request GET 'http://dev-cn.your-api-server.com/api/v1///commits.json' \
--header 'Cookie: autologin_trustie=3acc38c27d61a347f5c16fbca2c4964b181a2f79'
{
"total_count": 8,
"commits": [
{
"sha": "88801266695966b11fcd95ba2bcefad56750d1d9",
"author": {
"id": "110",
"login": "yystopf",
"name": "咸蛋黄土豆丝xxx",
"type": "User",
"image_url": "system/lets/letter_avatars/2/X/230_139_26/120.png"
},
"committer": {
"id": "110",
"login": "yystopf",
"name": "咸蛋黄土豆丝xxx",
"type": "User",
"image_url": "system/lets/letter_avatars/2/X/230_139_26/120.png"
},
"commit_message": "测试提交\n",
"parent_shas": [
"a69e40efe2d03dbea650c659540b7a0fd87f0c6b"
],
"files": [
"heihei7"
],
"commit_date": null,
"commit_time": 1658214400,
"branch": null
}
]
}