filter
default
Find code check runs that match the specified query. [What a code check run is exactly.](https://docs.github.com/en/rest/guides/getting-started-with-the-checks-api#about-check-runs)
Changed onpost/filter/code_checks
Request
- Base URL{{ server_url }}/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"in": [
"github.com/athenianco/athenian-webapp",
"github.com/athenianco/athenian-api"
],
"triggered_by": [
"github.com/vmarkovtsev",
"github.com/se7entyse7en"
],
"date_from": "2020-05-01",
"date_to": "2021-05-01",
"timezone": 120,
"account": 1
}Response
Code check runs that satisfy the specified filters.
Example response
{
"items": [
{
"title": "Unit tests",
"repository": "github.com/src-d/athenian-api",
"last_execution_time": "2021-05-18T11:47:42Z",
"last_execution_url": "https://github.com/athenianco/athenian-api/pull/1448/checks?check_run_id=2610787628",
"size_groups": [
3,
5,
8
],
"total_stats": {
"count": 100,
"successes": 50,
"critical": true,
"mean_execution_time": "200s",
"stddev_execution_time": "20s",
"median_execution_time": "120s",
"skips": 30,
"flaky_count": 0,
"count_timeline": [
0,
20,
40,
10
],
"successes_timeline": [
0,
10,
20,
5
],
"mean_execution_time_timeline": [
"150s",
"160s",
"210s",
"180s"
],
"median_execution_time_timeline": [
"110s",
"100s",
"125s",
"110s"
]
},
"prs_stats": {
"count": 100,
"successes": 50,
"critical": true,
"mean_execution_time": "200s",
"stddev_execution_time": "30s",
"median_execution_time": "120s",
"skips": 30,
"flaky_count": 0,
"count_timeline": [
0,
20,
40,
0
],
"successes_timeline": [
0,
10,
20,
0
],
"mean_execution_time_timeline": [
"170s",
"160s",
"210s",
"205s"
],
"median_execution_time_timeline": [
"175s",
"100s",
"125s",
"120s"
]
}
}
],
"timeline": [
"2020-05-01",
"2020-05-02",
"2020-05-03",
"2020-05-04"
]
}Changes
- info
added the new optional request property
/////
- info