Skip to Content
OpenPerf

Errors

Get suspect commit

GET
/api/v1/errors/{id}/suspect-commit

Returns the commit most likely to have introduced an error group based on release commits and code mappings.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Path Parameters

id*string

Response Body

application/json
  1. response
suspect*|null
Example Request
curl -X GET 'https://api.example.com/api/v1/errors/string/suspect-commit'
Example Response
{
  "suspect": {
    "commit": {
      "sha": "string",
      "message": "string",
      "authorName": "string",
      "authorEmail": "string",
      "authorLogin": "string",
      "authorAvatarUrl": "string",
      "committedAt": "2019-08-24T14:15:22Z",
      "url": "http://example.com"
    },
    "repository": {
      "id": "string",
      "integrationId": "string",
      "provider": "github",
      "name": "string",
      "url": "http://example.com",
      "defaultBranch": "string"
    },
    "path": "string",
    "line": 0,
    "fileUrl": "http://example.com"
  }
}