Ellipsis APIReferenceAnalytics

Get Analytics Pull Requests

Return pull-request analytics for the customer. Windowing: pass explicit start/end, or days (default: the last 30 days).

GET
/v1/analytics/pull-requests

Return pull-request analytics for the customer.

Windowing: pass explicit start/end, or days (default: the last 30 days).

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

days?integer|null
start?|null
end?|null
account_type?array<string>|null
repository_id?array<integer>|null
author_id?array<integer>|null
status?array<string>|null

Header Parameters

user-agent?string|null

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/analytics/pull-requests"
{  "facets": {    "account_types": [      "string"    ],    "authors": [      {        "account_type": "string",        "author_id": 0,        "avatar_url": "string",        "login": "string",        "prs": 0      }    ],    "repos": [      {        "prs": 0,        "repository_id": 0,        "repository_name": "string"      }    ]  },  "recent": [    {      "additions": 0,      "changed_files": 0,      "commits": 0,      "created_at": "2019-08-24T14:15:22Z",      "deletions": 0,      "head_ref": "string",      "head_sha": "string",      "html_url": "string",      "id": 0,      "merged_at": "2019-08-24T14:15:22Z",      "number": 0,      "repository_name": "string",      "status": "string",      "title": "string",      "user_avatar_url": "string",      "user_login": "string"    }  ],  "series": [    {      "authors": 0,      "authors_bot": 0,      "authors_human": 0,      "closed": 0,      "commits": 0,      "commits_bot": 0,      "commits_human": 0,      "date": "string",      "lines": 0,      "lines_bot": 0,      "lines_human": 0,      "merge_time": {        "p0": 0,        "p100": 0,        "p25": 0,        "p50": 0,        "p75": 0      },      "merged": 0,      "prs": 0,      "prs_bot": 0,      "prs_human": 0    }  ],  "totals": {    "active_authors": 0,    "commits": 0,    "lines": 0,    "merge_time_p50_hours": 0,    "merged": 0,    "prs": 0  },  "truncated": true}