List commits

GET /api/gh/:owner/:repo/commits

Parameters

Param

Type

from

any date and/or time string in yyyy-MM-dd HH:mm:ss format

Only query commits starting from this date

to

any date and/or time string in yyyy-MM-dd HH:mm:ss format

Only query commits up to this date

Results

{
  "commits": [
    {
      "branch": "master",
      "merged": null,
      "message": "pretty commit message",
      "deleted": null,
      "totals": "<totals obj>",
      "pullid": null,
      "ci_passed": true,
      "commitid": "30eb4733ba830d48b02a90285950c9b4db48c35d",
      "timestamp": "2016-08-18 17:32:25",
      "author": "<auther obj>"
    }
  ]
}

Get a single commit

GET /api/gh/:owner/:repo/commit/:sha

Force notifications to run

POST /api/gh/:owner/:repo/commit/:sha

This endpoint will force the commit to run the notification job and update the internal commit state.

Compare two commits

GET /api/gh/:owner/:repo/compare/:base...:head

Get folder totals

GET /api/gh/:owner/:repo/tree/:ref/:path
{
  "commit": {
    "folder_totals": <totals obj>
  }
}