Header

View commit information

This method allows you to view useful information about a specific revision in the connected repository.

URL

/projects/<project>/repository/commit_info

Replace <project> with the permalink of the project.

HTTP Method

GET

Supported Parameters

  • commit - the commit reference of the revision you wish to view (required)

Example cURL Request

curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
-d { 
  "commit" : "1234567abcdefg" \ 
} \
https://test.deployhq.com/projects/project/repository/commit_info

Example Response

{
  "ref": "1234567abcdefg",
  "author": "Adam West",
  "email": "adamw@atech.media",
  "timestamp": "2018-03-12T09:42:50+00:00",
  "message": "Test commit '",
  "short_message": "Test commit '",
  "tags": [],
  "avatar_url": "https://identity.atechmedia.com/avatar/xxxxxxx-yyyyyyy-zzzzzz-aaaaaaaa/128"
}