Pull Requests over Time
POST/code/api/v2/dashboard/pr-issues-over-time
Returns the count of the different pull request statuses
(Failed, Resolved (Failed and was blocking issues were resolved) and Passed) per day for the last 30 days.
You can set the repositories
and startDate
parameters in the request body to filter the results.
Request
- application/json
Body
required
The repositories filter enables you to retrieve issues related to one or more repositories.
You must provide the UUIDs of the repositories that you want to include in the filter.
To retrieve the UUID of a repository use the List repository list endpoint.
(the id
field of the response has the UUID of the repository).
(applicable to Code issues over time, and Pull Requests over Time): The start date filter enables you to retrieve issues from a given date. Provide a date earlier than the current date in the ISO 8601 format.
Responses
- 200
- 401
- 422
- 500
Pull Requests Issues Over Time
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]required
A date in ISO 8601 format. The response includes data for every single day starting from the given startDate
.
Number of pull requests that failed till the date.
Number of pull requests that failed on that date.
Number of pull requests that passed till the date.
Number of (failed and blocking) pull request issues that were resolved till the date.
The time when the last scan was triggered.
{
"data": [
{
"date": "string",
"failedCount": "string",
"failedTodayCount": "string",
"passedCount": "string",
"resolvedCount": "string"
}
],
"lastScanDate": "string"
}
Customer has no permitted accounts
Request arguments validation error
Failed to get pr issues over time data