Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 113 additions & 96 deletions public/api-schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -5015,7 +5015,7 @@
}
}
},
"/ci/{owner}/repositories/{repository_name}/search/tests": {
"/ci/{owner}/repositories/{repository}/search/tests": {
"get": {
"tags": [
"test_insights"
Expand All @@ -5025,39 +5025,39 @@
"operationId": "ci-search-tests",
"security": [
{
"GitHubTokenBearerAuth": []
"ApplicationAuth": []
},
{
"ApplicationAuth": []
"GitHubTokenBearerAuth": []
}
],
"parameters": [
{
"name": "repository_name",
"name": "owner",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository Name"
"maxLength": 40,
"pattern": "^[a-zA-Z0-9\\-]+$",
"description": "The owner of the repository",
"title": "Owner"
},
"description": "The name of the repository"
"description": "The owner of the repository"
},
{
"name": "owner",
"name": "repository",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"pattern": "^[a-zA-Z0-9\\-]+$",
"description": "The owner of the repository",
"title": "Owner"
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository"
},
"description": "The owner of the repository"
"description": "The name of the repository"
},
{
"name": "test_name",
Expand Down Expand Up @@ -5456,36 +5456,23 @@
}
}
},
"/ci/{owner}/repositories/{repository_name}/tests/{test_id}": {
"/ci/{owner}/repositories/{repository}/tests/{test_id}": {
"get": {
"tags": [
"test_insights"
],
"summary": "Get detailed information about a test",
"description": "Get detailed information about a test.",
"operationId": "get_test_details_ci__owner__repositories__repository_name__tests__test_id__get",
"operationId": "get_test_details_ci__owner__repositories__repository__tests__test_id__get",
"security": [
{
"GitHubTokenBearerAuth": []
"ApplicationAuth": []
},
{
"ApplicationAuth": []
"GitHubTokenBearerAuth": []
}
],
"parameters": [
{
"name": "repository_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository Name"
},
"description": "The name of the repository"
},
{
"name": "test_id",
"in": "path",
Expand All @@ -5511,6 +5498,19 @@
"title": "Owner"
},
"description": "The owner of the repository"
},
{
"name": "repository",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository"
},
"description": "The name of the repository"
}
],
"responses": {
Expand Down Expand Up @@ -5539,7 +5539,7 @@
}
}
},
"/ci/{owner}/repositories/{repository_name}/tests/{test_id}/stats/{stat}": {
"/ci/{owner}/repositories/{repository}/tests/{test_id}/stats/{stat}": {
"get": {
"tags": [
"test_insights"
Expand All @@ -5549,26 +5549,13 @@
"operationId": "ci-test-stats",
"security": [
{
"GitHubTokenBearerAuth": []
"ApplicationAuth": []
},
{
"ApplicationAuth": []
"GitHubTokenBearerAuth": []
}
],
"parameters": [
{
"name": "repository_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository Name"
},
"description": "The name of the repository"
},
{
"name": "test_id",
"in": "path",
Expand Down Expand Up @@ -5610,6 +5597,19 @@
},
"description": "The owner of the repository"
},
{
"name": "repository",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository"
},
"description": "The name of the repository"
},
{
"name": "start",
"in": "query",
Expand Down Expand Up @@ -5692,7 +5692,7 @@
}
}
},
"/ci/{owner}/repositories/{repository_name}/tests/{test_id}/failures": {
"/ci/{owner}/repositories/{repository}/tests/{test_id}/failures": {
"get": {
"tags": [
"test_insights"
Expand All @@ -5702,26 +5702,13 @@
"operationId": "ci-test-failures",
"security": [
{
"GitHubTokenBearerAuth": []
"ApplicationAuth": []
},
{
"ApplicationAuth": []
"GitHubTokenBearerAuth": []
}
],
"parameters": [
{
"name": "repository_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository Name"
},
"description": "The name of the repository"
},
{
"name": "test_id",
"in": "path",
Expand All @@ -5747,6 +5734,19 @@
"title": "Owner"
},
"description": "The owner of the repository"
},
{
"name": "repository",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository"
},
"description": "The name of the repository"
}
],
"responses": {
Expand Down Expand Up @@ -5775,7 +5775,7 @@
}
}
},
"/ci/{owner}/repositories/{repository_name}/tests/{test_id}/failures/{failure_id}": {
"/ci/{owner}/repositories/{repository}/tests/{test_id}/failures/{failure_id}": {
"get": {
"tags": [
"test_insights"
Expand All @@ -5785,26 +5785,13 @@
"operationId": "ci-test-failure",
"security": [
{
"GitHubTokenBearerAuth": []
"ApplicationAuth": []
},
{
"ApplicationAuth": []
"GitHubTokenBearerAuth": []
}
],
"parameters": [
{
"name": "repository_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository Name"
},
"description": "The name of the repository"
},
{
"name": "test_id",
"in": "path",
Expand Down Expand Up @@ -5842,6 +5829,19 @@
"title": "Owner"
},
"description": "The owner of the repository"
},
{
"name": "repository",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository"
},
"description": "The name of the repository"
}
],
"responses": {
Expand Down Expand Up @@ -5870,7 +5870,7 @@
}
}
},
"/ci/{owner}/repositories/{repository_name}/tests/{test_id}/executions": {
"/ci/{owner}/repositories/{repository}/tests/{test_id}/executions": {
"get": {
"tags": [
"test_insights"
Expand All @@ -5880,26 +5880,13 @@
"operationId": "ci-test-executions",
"security": [
{
"GitHubTokenBearerAuth": []
"ApplicationAuth": []
},
{
"ApplicationAuth": []
"GitHubTokenBearerAuth": []
}
],
"parameters": [
{
"name": "repository_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository Name"
},
"description": "The name of the repository"
},
{
"name": "test_id",
"in": "path",
Expand All @@ -5926,6 +5913,19 @@
},
"description": "The owner of the repository"
},
{
"name": "repository",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"pattern": "^[\\w\\-\\.]+$",
"description": "The name of the repository",
"title": "Repository"
},
"description": "The name of the repository"
},
{
"name": "sort",
"in": "query",
Expand Down Expand Up @@ -7900,14 +7900,19 @@
},
"type": "array",
"title": "Peer Pull Request Numbers"
},
"affinity_score": {
"type": "number",
"title": "Affinity Score"
}
},
"type": "object",
"required": [
"kind",
"shared_scopes",
"shared_directories",
"peer_pull_request_numbers"
"peer_pull_request_numbers",
"affinity_score"
],
"title": "BatchReason",
"description": "Why a PR shares its batch (train car) with the other PRs in it.\n\nRe-derived at serialization time from each member's persisted similarity\nsignals \u2014 the same ``scopes`` / ``changed_directories`` the batching\nalgorithm groups on \u2014 so it stays correct as a car is bisected and members\nleave. It reports the signal the car's *current* members actually share,\nnot a replay of the formation-time greedy pick order. ``None`` when the car\nholds a single PR (nothing to explain) or for a not-yet-batched waiting PR."
Expand Down Expand Up @@ -15268,6 +15273,18 @@
"type": "null"
}
]
},
"is_frozen": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Is Frozen",
"description": "Whether an ongoing scheduled freeze holds this pull request's merge, independent of its CI status \u2014 it can be running CI and `is_frozen` at once. `false` when no freeze affects it."
}
},
"type": "object",
Expand Down
Loading