Authorization: Bearer ********************
curl --location --request GET 'http://dev-cn.your-api-server.com/api///compare/....json' \
--header 'Cookie: autologin_trustie=3acc38c27d61a347f5c16fbca2c4964b181a2f79'
{
"commits_count": 2,
"commits": [
{
"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"
},
"timestamp": 1700643425,
"time_from_now": "8天前",
"created_at": "2023-11-22 16:57",
"message": "Add cxxc\n",
"sha": "82861402ada099d3e288fc41680596dde297d022"
},
{
"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"
},
"timestamp": 1700621060,
"time_from_now": "8天前",
"created_at": "2023-11-22 10:44",
"message": "Add 测试\n",
"sha": "37d52b40456755c364a0dea77b702381606edefb"
}
],
"diff": {
"files_count": 2,
"total_addition": 1,
"total_deletion": 0,
"files": [
{
"sha": null,
"name": "cxxc",
"old_name": "cxxc",
"index": 1,
"addition": 0,
"deletion": 0,
"type": 1,
"isCreated": true,
"isDeleted": false,
"isBin": false,
"isLFSFile": false,
"isRenamed": false,
"isSubmodule": false,
"sections": []
},
{
"sha": null,
"name": "测试",
"old_name": "测试",
"index": 2,
"addition": 1,
"deletion": 0,
"type": 1,
"isCreated": true,
"isDeleted": false,
"isBin": false,
"isLFSFile": false,
"isRenamed": false,
"isSubmodule": false,
"sections": [
{
"fileName": "测试",
"name": "",
"lines": [
{
"leftIdx": 0,
"rightIdx": 0,
"type": 4,
"content": "@@ -0,0 +1 @@",
"sectionInfo": {
"path": "测试",
"lastLeftIdx": 0,
"lastRightIdx": 0,
"leftIdx": 0,
"rightIdx": 1,
"leftHunkSize": 0,
"rightHunkSize": 0
}
},
{
"leftIdx": 0,
"rightIdx": 1,
"type": 2,
"content": "+是多福多寿",
"sectionInfo": null
}
]
}
]
}
]
},
"status": -2,
"message": "在这些分支之间的合并请求已存在:<a href='/yystopfceshi/testdevops/pulls/12'>或交委参她</a>"
}