Skip to main content
GET
/
api
/
v1
/
git
/
commits
List commits
curl --request GET \
  --url http://localhost:3000/api/v1/git/commits \
  --cookie nut-session=
{
  "success": true,
  "data": {
    "commits": [
      {
        "sha": "<string>",
        "message": "<string>",
        "shortSha": "<string>",
        "author": {
          "name": "<string>",
          "email": "<string>",
          "date": "2023-11-07T05:31:56Z"
        },
        "committer": {
          "name": "<string>",
          "email": "<string>",
          "date": "2023-11-07T05:31:56Z"
        },
        "parents": [
          "<string>"
        ]
      }
    ]
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Query Parameters

branch
string

Branch name

limit
integer
default:50

Maximum number of commits

Response

List of commits

success
boolean
required
data
object