{"openapi":"3.1.0","info":{"title":"Mergify API","description":"Faster & safer code merge","termsOfService":"https://mergify.com/tos","contact":{"name":"Mergify","url":"https://mergify.com/","email":"support@mergify.com"},"version":"v1"},"servers":[{"url":"/v1"},{"url":"https://api.mergify.com/v1","description":"default"}],"paths":{"/application":{"get":{"tags":["applications"],"summary":"Get current application","description":"Get the current authenticated application","operationId":"application_application_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationResponse"},"example":{"id":"e155518c-ca1b-443c-9be9-fe90fdab7345","name":"an application name","scope":"admin","account_scope":{"id":123456,"login":"Mergifyio"}}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}},"security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]}]}},"/repos/{owner}/{repository}/queues/configuration":{"get":{"tags":["queues"],"summary":"Get merge queues configuration","description":"Get the list of all merge queues configuration sorted by processing order","operationId":"repository_queues_configuration_repos__owner___repository__queues_configuration_get","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueuesConfig"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"The configuration file is invalid."}}}},"/repos/{owner}/{repository}/queue/pause":{"put":{"tags":["queues"],"summary":"Pause the merge queue","description":"Pause the merge of the requested repository","operationId":"create_queue_pause_repos__owner___repository__queue_pause_put","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueuePausePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueuePauseResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}},"delete":{"tags":["queues"],"summary":"Unpause merge queue","description":"Unpause the merge queue of the requested repository","operationId":"delete_queue_pause_repos__owner___repository__queue_pause_delete","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}},"get":{"tags":["queues"],"summary":"Get queue pause data","description":"Checks if the merge queue is paused and get the queue pause data","operationId":"get_queue_pause_repos__owner___repository__queue_pause_get","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueuePauseResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/queue/pause/delete":{"post":{"tags":["queues"],"summary":"Unpause merge queue","description":"Unpause the merge queue of the requested repository","operationId":"delete_queue_pause_repos__owner___repository__queue_pause_delete_post","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/queues":{"get":{"tags":["queues"],"summary":"Get merge queues","description":"Get the list of pull requests queued in a merge queue of a repository","operationId":"repository_queues_repos__owner___repository__queues_get","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queues"},"example":{"queues":[{"branch":{"name":"main"},"pull_requests":[{"number":5678,"position":1,"priority":100,"effective_priority":100,"priority_alias":"low","partition_name":"__default__","queue_rule":{"name":"default","config":{"priority":100,"batch_size":1,"batch_max_wait_time":0,"allow_inplace_checks":true,"allow_queue_branch_edit":false,"checks_timeout":60,"draft_bot_account":"","queue_branch_prefix":"mergify/merge-queue/","queue_branch_merge_method":"fast-forward","batch_max_failure_resolution_attempts":10,"commit_message_template":"","merge_bot_account":"","merge_method":"merge","update_bot_account":"","update_method":"rebase","autosquash":true}},"speculative_check_pull_request":{"in_place":true,"number":5678,"started_at":"2021-10-14T14:19:12+00:00","ended_at":"2021-10-14T15:00:42+00:00","checks":[],"evaluated_conditions":"","state":"success"},"mergeability_check":{"check_type":"in_place","pull_request_number":5678,"started_at":"2021-10-14T14:19:12+00:00","ended_at":"2021-10-14T15:00:42+00:00","state":"success"},"queued_at":"2021-10-14T14:19:12+00:00","estimated_time_of_merge":"2021-10-14T15:19:12+00:00"},{"number":4242,"position":1,"priority":100,"effective_priority":100,"priority_alias":"low","partition_name":"__default__","queue_rule":{"name":"default","config":{"priority":100,"batch_size":1,"batch_max_wait_time":0,"allow_inplace_checks":true,"allow_queue_branch_edit":false,"checks_timeout":60,"draft_bot_account":"","queue_branch_prefix":"mergify/merge-queue/","queue_branch_merge_method":"fast-forward","batch_max_failure_resolution_attempts":10,"commit_message_template":"","merge_bot_account":"","merge_method":"merge","update_bot_account":"","update_method":"rebase","autosquash":false}},"speculative_check_pull_request":{"in_place":false,"number":7899,"started_at":"2021-10-14T14:19:12+00:00","ended_at":"2021-10-14T15:00:42+00:00","checks":[],"evaluated_conditions":"","state":"success"},"mergeability_check":{"check_type":"draft_pr","pull_request_number":7899,"started_at":"2021-10-14T14:19:12+00:00","ended_at":"2021-10-14T15:00:42+00:00","state":"success"},"queued_at":"2021-10-14T14:19:12+00:00","estimated_time_of_merge":"2021-10-14T15:19:12+00:00"}]}]}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/queues/branches":{"get":{"tags":["queues"],"summary":"Get the base refs in the repository","description":"Retrieve a list of base refs branches affected by queue activity","operationId":"get_queue_base_refs_repos__owner___repository__queues_branches_get","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseRefsResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/pulls/{number}/simulator":{"post":{"tags":["simulator"],"summary":"Get a Mergify simulation for a pull request","description":"Get a simulation of what Mergify will do on a pull request","operationId":"simulator_pull_repos__owner___repository__pulls__number__simulator_post","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"number","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"The pull request number","title":"Number"},"description":"The pull request number"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulatorPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulatorResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/simulator":{"post":{"tags":["simulator"],"summary":"Get a Mergify simulation for a repository","description":"Get a simulation of what Mergify will do for this repository","operationId":"simulator_repo_repos__owner___repository__simulator_post","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulatorPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulatorResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/configuration-simulator":{"post":{"tags":["simulator"],"summary":"Get a Mergify configuration simulation for a repository","description":"Get a simulation of what Mergify will do for this repository","operationId":"repository_configuration_simulator_repos__owner___repository__configuration_simulator_post","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulatorPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryConfigurationSimulatorResponse"},"example":{"message":"The configuration is valid","deprecations":[]}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/logs":{"get":{"tags":["activity_log"],"summary":"Get the activity log","description":"Get the activity log of the requested repository. Supports filtering by `event_type`, derived `outcome` (`success` / `failure` / `pending` / `neutral`), `trigger` (include only these trigger strings — Datadog `Only`), and `not_trigger` (exclude). `trigger` and `not_trigger` are mutually exclusive.","operationId":"get_repository_events_repos__owner___repository__logs_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"pull_request","in":"query","required":false,"schema":{"anyOf":[{"type":"array","uniqueItems":true,"items":{"type":"integer","maximum":9223372036854775807,"minimum":1,"exclusiveMaximum":2147483647}},{"type":"null"}],"description":"Filter events by pull-request number. Repeatable to match several PRs at once (e.g. `?pull_request=1&pull_request=2`).","title":"Pull Request"},"description":"Filter events by pull-request number. Repeatable to match several PRs at once (e.g. `?pull_request=1&pull_request=2`)."},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Get events for PRs to the given base ref","title":"Base Ref"},"description":"Get events for PRs to the given base ref"},{"name":"batch_pull","in":"query","required":false,"schema":{"anyOf":[{"type":"array","uniqueItems":true,"items":{"type":"integer","minimum":1,"exclusiveMaximum":2147483647}},{"type":"null"}],"description":"Filter to batch (draft) pull requests' own lifecycle events by number (surfaced in the dashboard as \"Batch Pull Request\"). Repeatable to match several batches at once. The draft PR is the Mergify-opened pull request that speculatively checks a batch; this returns each batch's `action.queue.checks_start` / `action.queue.checks_end` events (which snapshot the draft PR number) plus the batch's bisection events. When `in_place` is true the number is the user's own PR rather than a Mergify draft. The number rotates on checks-retry — each event snapshots the number at that attempt. Mutually exclusive with `not_batch_pull` (exclusion).","title":"Batch Pull"},"description":"Filter to batch (draft) pull requests' own lifecycle events by number (surfaced in the dashboard as \"Batch Pull Request\"). Repeatable to match several batches at once. The draft PR is the Mergify-opened pull request that speculatively checks a batch; this returns each batch's `action.queue.checks_start` / `action.queue.checks_end` events (which snapshot the draft PR number) plus the batch's bisection events. When `in_place` is true the number is the user's own PR rather than a Mergify draft. The number rotates on checks-retry — each event snapshots the number at that attempt. Mutually exclusive with `not_batch_pull` (exclusion)."},{"name":"not_batch_pull","in":"query","required":false,"schema":{"anyOf":[{"type":"array","uniqueItems":true,"items":{"type":"integer","minimum":1,"exclusiveMaximum":2147483647}},{"type":"null"}],"description":"Exclude batch (draft) pull requests' own lifecycle events by number — the same event set `batch_pull` includes, negated. Repeatable. Mirrors Datadog's facet semantics: unchecking a batch pull request in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `batch_pull` (positive include).","title":"Not Batch Pull"},"description":"Exclude batch (draft) pull requests' own lifecycle events by number — the same event set `batch_pull` includes, negated. Repeatable. Mirrors Datadog's facet semantics: unchecking a batch pull request in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `batch_pull` (positive include)."},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},{"type":"null"}],"description":"The specific types of events to select","title":"Event Type"},"description":"The specific types of events to select"},{"name":"not_event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},{"type":"null"}],"description":"Exclude events whose type matches any of the given values. Mutually exclusive with `event_type` (positive include).","title":"Not Event Type"},"description":"Exclude events whose type matches any of the given values. Mutually exclusive with `event_type` (positive include)."},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EventOutcome"}},{"type":"null"}],"description":"Filter events by derived outcome label (`success` / `failure` / `pending` / `neutral`). Repeatable to match several outcomes at once (e.g. `?outcome=success&outcome=failure`).","title":"Outcome"},"description":"Filter events by derived outcome label (`success` / `failure` / `pending` / `neutral`). Repeatable to match several outcomes at once (e.g. `?outcome=success&outcome=failure`)."},{"name":"not_outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EventOutcome"}},{"type":"null"}],"description":"Exclude events whose derived outcome label matches any of the given values (`success` / `failure` / `pending` / `neutral`). Repeatable. Mirrors Datadog's facet semantics: unchecking an outcome in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `outcome` (positive include).","title":"Not Outcome"},"description":"Exclude events whose derived outcome label matches any of the given values (`success` / `failure` / `pending` / `neutral`). Repeatable. Mirrors Datadog's facet semantics: unchecking an outcome in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `outcome` (positive include)."},{"name":"trigger","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Include only events whose `trigger` matches one of the given values (exact match). Repeatable. Mirrors Datadog's facet behaviour after clicking `Only`: the URL switches from exclusion mode to inclusion mode with a positive list — shorter than `not_trigger=<everything else>`. Mutually exclusive with `not_trigger`.","title":"Trigger"},"description":"Include only events whose `trigger` matches one of the given values (exact match). Repeatable. Mirrors Datadog's facet behaviour after clicking `Only`: the URL switches from exclusion mode to inclusion mode with a positive list — shorter than `not_trigger=<everything else>`. Mutually exclusive with `not_trigger`."},{"name":"not_trigger","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Exclude events whose `trigger` matches any of the given values (exact match). Repeatable. Mirrors Datadog's facet semantics: the default state is `all triggers included`, and unchecking a trigger in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `trigger` (positive include).","title":"Not Trigger"},"description":"Exclude events whose `trigger` matches any of the given values (exact match). Repeatable. Mirrors Datadog's facet semantics: the default state is `all triggers included`, and unchecking a trigger in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `trigger` (positive include)."},{"name":"not_pull_request","in":"query","required":false,"schema":{"anyOf":[{"type":"array","uniqueItems":true,"items":{"type":"integer","maximum":9223372036854775807,"minimum":1,"exclusiveMaximum":2147483647}},{"type":"null"}],"description":"Exclude events whose pull request matches any of the given numbers. Mutually exclusive with `pull_request` (positive include).","title":"Not Pull Request"},"description":"Exclude events whose pull request matches any of the given numbers. Mutually exclusive with `pull_request` (positive include)."},{"name":"received_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the time range (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z). Defaults to `received_to - 1 day`.","title":"Received From"},"description":"Start of the time range (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z). Defaults to `received_to - 1 day`."},{"name":"received_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the time range (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z). Defaults to `now`.","title":"Received To"},"description":"End of the time range (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z). Defaults to `now`."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages","title":"Cursor"},"description":"The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"The number of items per page","default":10,"title":"Per Page"},"description":"The number of items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventsResponse"}}},"headers":{"Link":{"description":"Pagination links (rfc5988). `next` and `prev` are each present only when there is a page to go to, so a response with nothing before or after it carries no `Link` header at all. To return to the first page, call the endpoint again without a `cursor`.","example":"Link: <https://api.mergify.com/v1/repos/Mergifyio/mergify-engine/logs?cursor=def&per_page=20>; rel=\"next\",\n  <https://api.mergify.com/v1/repos/Mergifyio/mergify-engine/logs?cursor=abc&per_page=20>; rel=\"prev\"","schema":{"type":"string"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/logs/aggregate":{"get":{"tags":["activity_log"],"summary":"Get aggregated event counts","description":"Aggregations (total / histogram / event-type / outcome / trigger / pull-request / batch-pull-request facet counts) over the same filter set as `/logs`. The response stays consistent with what the row endpoint returns: `total` matches what the table will show; unchecked values produce no row in their facet list (the sidebar hides their count rather than display `0`). `by_outcome` is derived from `event.type` (most types map directly; a few refine the label from event metadata); `by_trigger`, `by_pull_request`, and `by_batch_pull_request` return the top 200 values by count in the window, self-excluding their own filters.","operationId":"get_repository_events_aggregate_repos__owner___repository__logs_aggregate_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"pull_request","in":"query","required":false,"schema":{"anyOf":[{"type":"array","uniqueItems":true,"items":{"type":"integer","maximum":9223372036854775807,"minimum":1,"exclusiveMaximum":2147483647}},{"type":"null"}],"description":"Filter events by pull-request number. Repeatable to match several PRs at once (e.g. `?pull_request=1&pull_request=2`).","title":"Pull Request"},"description":"Filter events by pull-request number. Repeatable to match several PRs at once (e.g. `?pull_request=1&pull_request=2`)."},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Get events for PRs to the given base ref","title":"Base Ref"},"description":"Get events for PRs to the given base ref"},{"name":"batch_pull","in":"query","required":false,"schema":{"anyOf":[{"type":"array","uniqueItems":true,"items":{"type":"integer","minimum":1,"exclusiveMaximum":2147483647}},{"type":"null"}],"description":"Filter to batch (draft) pull requests' own lifecycle events by number (surfaced in the dashboard as \"Batch Pull Request\"). Repeatable to match several batches at once. The draft PR is the Mergify-opened pull request that speculatively checks a batch; this returns each batch's `action.queue.checks_start` / `action.queue.checks_end` events (which snapshot the draft PR number) plus the batch's bisection events. When `in_place` is true the number is the user's own PR rather than a Mergify draft. The number rotates on checks-retry — each event snapshots the number at that attempt. Mutually exclusive with `not_batch_pull` (exclusion).","title":"Batch Pull"},"description":"Filter to batch (draft) pull requests' own lifecycle events by number (surfaced in the dashboard as \"Batch Pull Request\"). Repeatable to match several batches at once. The draft PR is the Mergify-opened pull request that speculatively checks a batch; this returns each batch's `action.queue.checks_start` / `action.queue.checks_end` events (which snapshot the draft PR number) plus the batch's bisection events. When `in_place` is true the number is the user's own PR rather than a Mergify draft. The number rotates on checks-retry — each event snapshots the number at that attempt. Mutually exclusive with `not_batch_pull` (exclusion)."},{"name":"not_batch_pull","in":"query","required":false,"schema":{"anyOf":[{"type":"array","uniqueItems":true,"items":{"type":"integer","minimum":1,"exclusiveMaximum":2147483647}},{"type":"null"}],"description":"Exclude batch (draft) pull requests' own lifecycle events by number — the same event set `batch_pull` includes, negated. Repeatable. Mirrors Datadog's facet semantics: unchecking a batch pull request in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `batch_pull` (positive include).","title":"Not Batch Pull"},"description":"Exclude batch (draft) pull requests' own lifecycle events by number — the same event set `batch_pull` includes, negated. Repeatable. Mirrors Datadog's facet semantics: unchecking a batch pull request in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `batch_pull` (positive include)."},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},{"type":"null"}],"description":"The specific types of events to select","title":"Event Type"},"description":"The specific types of events to select"},{"name":"not_event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},{"type":"null"}],"description":"Exclude events whose type matches any of the given values. Mutually exclusive with `event_type` (positive include).","title":"Not Event Type"},"description":"Exclude events whose type matches any of the given values. Mutually exclusive with `event_type` (positive include)."},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EventOutcome"}},{"type":"null"}],"description":"Filter events by derived outcome label (`success` / `failure` / `pending` / `neutral`). Repeatable to match several outcomes at once (e.g. `?outcome=success&outcome=failure`).","title":"Outcome"},"description":"Filter events by derived outcome label (`success` / `failure` / `pending` / `neutral`). Repeatable to match several outcomes at once (e.g. `?outcome=success&outcome=failure`)."},{"name":"not_outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EventOutcome"}},{"type":"null"}],"description":"Exclude events whose derived outcome label matches any of the given values (`success` / `failure` / `pending` / `neutral`). Repeatable. Mirrors Datadog's facet semantics: unchecking an outcome in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `outcome` (positive include).","title":"Not Outcome"},"description":"Exclude events whose derived outcome label matches any of the given values (`success` / `failure` / `pending` / `neutral`). Repeatable. Mirrors Datadog's facet semantics: unchecking an outcome in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `outcome` (positive include)."},{"name":"trigger","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Include only events whose `trigger` matches one of the given values (exact match). Repeatable. Mirrors Datadog's facet behaviour after clicking `Only`: the URL switches from exclusion mode to inclusion mode with a positive list — shorter than `not_trigger=<everything else>`. Mutually exclusive with `not_trigger`.","title":"Trigger"},"description":"Include only events whose `trigger` matches one of the given values (exact match). Repeatable. Mirrors Datadog's facet behaviour after clicking `Only`: the URL switches from exclusion mode to inclusion mode with a positive list — shorter than `not_trigger=<everything else>`. Mutually exclusive with `not_trigger`."},{"name":"not_trigger","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Exclude events whose `trigger` matches any of the given values (exact match). Repeatable. Mirrors Datadog's facet semantics: the default state is `all triggers included`, and unchecking a trigger in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `trigger` (positive include).","title":"Not Trigger"},"description":"Exclude events whose `trigger` matches any of the given values (exact match). Repeatable. Mirrors Datadog's facet semantics: the default state is `all triggers included`, and unchecking a trigger in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with `trigger` (positive include)."},{"name":"not_pull_request","in":"query","required":false,"schema":{"anyOf":[{"type":"array","uniqueItems":true,"items":{"type":"integer","maximum":9223372036854775807,"minimum":1,"exclusiveMaximum":2147483647}},{"type":"null"}],"description":"Exclude events whose pull request matches any of the given numbers. Mutually exclusive with `pull_request` (positive include).","title":"Not Pull Request"},"description":"Exclude events whose pull request matches any of the given numbers. Mutually exclusive with `pull_request` (positive include)."},{"name":"received_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the time range (ISO 8601 with timezone). Defaults to `received_to - 1 day`.","title":"Received From"},"description":"Start of the time range (ISO 8601 with timezone). Defaults to `received_to - 1 day`."},{"name":"received_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the time range (ISO 8601 with timezone). Defaults to `now`.","title":"Received To"},"description":"End of the time range (ISO 8601 with timezone). Defaults to `now`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityLogAggregateResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/time_to_merge":{"get":{"tags":["statistics"],"summary":"Time to merge statistics for every queue","description":"Get the average time to merge statistics, in seconds, for all the queues in the repository","operationId":"get_time_to_merge_stats_for_all_queues_and_partitions_endpoint_repos__owner___repository__stats_time_to_merge_get","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Retrieve the time to merge at this timestamp (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z)","title":"At"},"description":"Retrieve the time to merge at this timestamp (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z)"},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name of the branch","title":"Branch"},"description":"The name of the branch"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimeToMergePerPartition"},"title":"Response Get Time To Merge Stats For All Queues And Partitions Endpoint Repos  Owner   Repository  Stats Time To Merge Get"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/merge_queue_checks_outcome":{"get":{"tags":["statistics"],"summary":"Get the queue checks outcome for the repository","description":"Statuses describing the state in which the pull requests have left the queue(s).","operationId":"get_checks_outcome_repos__owner___repository__stats_merge_queue_checks_outcome_get","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Merge queue name(s) of the pull requests","title":"Queue Name"},"description":"Merge queue name(s) of the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecksOutcomeResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/queues_checks_outcome_count":{"get":{"tags":["statistics"],"summary":"Get the count of queue checks outcomes","description":"Statuses describing the state in which the pull requests have left the queue(s), grouped by time intervals.","operationId":"get_checks_outcome_by_interval_repos__owner___repository__stats_queues_checks_outcome_count_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Merge queue name(s) of the pull requests","title":"Queue Name"},"description":"Merge queue name(s) of the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecksOutcomeByIntervalResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/queues_entered_count":{"get":{"tags":["statistics"],"summary":"Get the count of pull requests entering the queues","description":"Queues pull requests entered by intervals of time","operationId":"get_queues_pull_requests_entered_count_repos__owner___repository__stats_queues_entered_count_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnteredCountResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/queues_merged_count":{"get":{"tags":["statistics"],"summary":"Get the count of pull requests merged by queues","description":"Queues pull requests merged by intervals of time","operationId":"get_queues_pull_requests_merged_count_repos__owner___repository__stats_queues_merged_count_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergedCountResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/average_ci_runtime":{"get":{"tags":["statistics"],"summary":"Get the average CI runtime","description":"Runtime of your CI running on queued pull requests by intervals of time","operationId":"get_average_ci_runtime_repos__owner___repository__stats_average_ci_runtime_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CIAverageRuntimeResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/idle_queue_time":{"get":{"tags":["statistics"],"summary":"Get the idle queue time","description":"Idle time spent in queue by the Pull Requests by intervals of time","operationId":"get_average_idle_queue_time_repos__owner___repository__stats_idle_queue_time_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AverageIdleQueueTimeResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/total_queue_time":{"get":{"tags":["statistics"],"summary":"Get the queue time","description":"Total time spent in queue by the Pull Requests by intervals of time","operationId":"get_total_queue_time_repos__owner___repository__stats_total_queue_time_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueAverageTimeResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/queue_size":{"get":{"tags":["statistics"],"summary":"Get the queue size","description":"Get the average, max and min queue size over the period by intervals of time","operationId":"get_queue_size_repos__owner___repository__stats_queue_size_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueSizeResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/running_speculative_checks":{"get":{"tags":["statistics"],"summary":"Get the number of running speculative checks","description":"Speculative checks running on queues by intervals of time","operationId":"get_total_running_checks_repos__owner___repository__stats_running_speculative_checks_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Merge queue name(s) of the pull requests","title":"Queue Name"},"description":"Merge queue name(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunningChecksResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/batch_size":{"get":{"tags":["statistics"],"summary":"Get the checks batch size","description":"Batch size of the checks running on queues by intervals of time","operationId":"get_stats_batch_size_repos__owner___repository__stats_batch_size_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Merge queue rule name(s) of the pull requests","title":"Queue Name"},"description":"Merge queue rule name(s) of the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSizeResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/batch_bisection":{"get":{"tags":["statistics"],"summary":"Get batch bisection statistics","description":"Statistics about bisection events in the merge queue","operationId":"get_stats_batch_bisection_repos__owner___repository__stats_batch_bisection_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Merge queue rule name(s) of the pull requests","title":"Queue Name"},"description":"Merge queue rule name(s) of the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BisectionResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/branches":{"get":{"tags":["statistics"],"summary":"Get the base refs in the repository","description":"Retrieve a list of base refs branches affected by queue activity","operationId":"get_stats_branches_repos__owner___repository__stats_branches_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseRefsResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/checks_retries":{"get":{"tags":["statistics"],"summary":"Get the queue checks retries statistics","description":"Statistics about checks retries in the merge queue by intervals of time","operationId":"get_queue_checks_retries_repos__owner___repository__stats_checks_retries_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecksRetriesResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/failure_rate":{"get":{"tags":["statistics"],"summary":"Get the queue failure rate","description":"Failure rate of pull requests in the merge queue by intervals of time","operationId":"get_queue_failure_rate_repos__owner___repository__stats_failure_rate_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailureRateResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/skip_intermediate_results":{"get":{"tags":["statistics"],"summary":"Get the number of batches saved by skip intermediate results","description":"Number of batches merged without running their own speculative CI because a later batch containing their changes passed (skip_intermediate_results) — i.e. the speculative CI runs avoided — by intervals of time","operationId":"get_skip_intermediate_results_repos__owner___repository__stats_skip_intermediate_results_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkipIntermediateResultsResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/queues_pr_exit_reasons":{"get":{"tags":["statistics"],"summary":"Get PR exit reasons by interval","description":"Count of pull request queue-session exits by reason, grouped by time intervals. Each queue session (enter → leave) is counted once. A PR re-queued after failure appears in each session separately.","operationId":"get_pr_exit_reasons_repos__owner___repository__stats_queues_pr_exit_reasons_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"base_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Base reference(s) of the pull requests","title":"Base Ref"},"description":"Base reference(s) of the pull requests"},{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the merge queue(s) for the pull requests","title":"Queue Name"},"description":"Name of the merge queue(s) for the pull requests"},{"name":"priority_rule_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Name of the priority rule(s) of the pull requests","title":"Priority Rule Name"},"description":"Name of the priority rule(s) of the pull requests"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrExitReasonResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/stats/queues":{"get":{"tags":["statistics"],"summary":"Get the queue names in the repository","description":"Retrieve a list of queue names affected by queue activity","operationId":"get_stats_queues_repos__owner___repository__stats_queues_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"start_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats until this date, default 1 day before end_at","title":"Start At"},"description":"Get the stats until this date, default 1 day before end_at"},{"name":"end_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Get the stats from this date, default now","title":"End At"},"description":"Get the stats from this date, default now"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueNamesResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/pulls/{number}/scopes":{"put":{"tags":["pull_requests"],"summary":"Set the scopes for a pull request","description":"Set the scopes for a pull request.\n\nThis addresses the scopes by pull request number alone, so the report cannot say\nwhich revision it was computed for, and the last one to arrive wins whatever\nhead that was. Prefer `PUT /repos/{owner}/{repository}/commits/{sha}/scopes`,\nwhich names the revision.","operationId":"put_ci_scopes_repos__owner___repository__pulls__number__scopes_put","security":[{"CIApplicationKey":[]}],"parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"The pull request number","title":"Number"},"description":"The pull request number"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopesBody"}}}},"responses":{"204":{"description":"Successful Response"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}},"post":{"tags":["pull_requests"],"summary":"Set the scopes for a pull request (deprecated, use PUT)","description":"Deprecated: use PUT on `/repos/{owner}/{repository}/commits/{sha}/scopes` instead.","operationId":"set_ci_scopes_repos__owner___repository__pulls__number__scopes_post","deprecated":true,"security":[{"CIApplicationKey":[]}],"parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"The pull request number","title":"Number"},"description":"The pull request number"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopesBody"}}}},"responses":{"204":{"description":"Successful Response"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/commits/{sha}/scopes":{"put":{"tags":["pull_requests"],"summary":"Set the scopes for a commit","description":"Set the scopes a commit impacts.\n\nPrefer this over the pull request variant. Scopes computed for one revision do\nnot describe another, so naming the revision lets a report be matched against the\nhead a pull request actually has. A report for a revision a pull request has\nalready moved past can no longer overwrite what its current head reported; a\nreport *is* still applied to every **open** pull request whose head it currently\nis, which is the normal case.\n\nA report replaces the previous one for that revision in full: `all_scopes`\ndefaults to `false`, so omitting it clears a barrier previously reported for the\nsame commit. Send the complete result of your scope computation every time.\n\nSend the pull request's head SHA (`github.event.pull_request.head.sha`). That is\nnot always the revision your job checked out: on a `pull_request` event the\ndefault checkout is a merge commit, and a report keyed on that SHA matches no\npull request head.","operationId":"put_commit_scopes_repos__owner___repository__commits__sha__scopes_put","security":[{"CIApplicationKey":[]}],"parameters":[{"name":"sha","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{40}$","description":"The commit SHA the scopes were computed from","title":"Sha"},"description":"The commit SHA the scopes were computed from"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopesBody"}}}},"responses":{"204":{"description":"Successful Response"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/repositories/{repository}/search/tests":{"get":{"tags":["test_insights"],"summary":"Search tests","description":"Search tests in a repository.","operationId":"ci-search-tests","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"test_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"Filter by test name. Pass multiple times to combine matches. Supports glob patterns (`*`, `?`). Omit to return all test identities.","title":"Test Name"},"description":"Filter by test name. Pass multiple times to combine matches. Supports glob patterns (`*`, `?`). Omit to return all test identities."},{"name":"sort","in":"query","required":false,"schema":{"enum":["executions_count","test_name","pipeline_name","job_name","health_status","health_confidence","failed_executions_impact","failed_executions_ratio"],"type":"string","description":"Sort field","default":"executions_count","title":"Sort"},"description":"Sort field"},{"name":"direction","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"Sort direction","default":"desc","title":"Direction"},"description":"Sort direction"},{"name":"test_name_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The test name to exclude","title":"Test Name Exclude"},"description":"The test name to exclude"},{"name":"pipeline_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The pipeline name to filter on","title":"Pipeline Name"},"description":"The pipeline name to filter on"},{"name":"pipeline_name_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The pipeline name to exclude","title":"Pipeline Name Exclude"},"description":"The pipeline name to exclude"},{"name":"job_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The job name to filter on","title":"Job Name"},"description":"The job name to filter on"},{"name":"job_name_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The job name to exclude","title":"Job Name Exclude"},"description":"The job name to exclude"},{"name":"health_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/HealthStatus"}},{"type":"null"}],"description":"The health status to filter on","title":"Health Status"},"description":"The health status to filter on"},{"name":"health_status_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/HealthStatus"}},{"type":"null"}],"description":"The health status to exclude","title":"Health Status Exclude"},"description":"The health status to exclude"},{"name":"health_confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/HealthConfidence"}},{"type":"null"}],"description":"The health confidence to filter on","title":"Health Confidence"},"description":"The health confidence to filter on"},{"name":"health_confidence_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/HealthConfidence"}},{"type":"null"}],"description":"The health confidence to exclude","title":"Health Confidence Exclude"},"description":"The health confidence to exclude"},{"name":"failed_executions_impact","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["low","medium","high"],"type":"string"}},{"type":"null"}],"description":"The failed executions impact to filter on","title":"Failed Executions Impact"},"description":"The failed executions impact to filter on"},{"name":"failed_executions_impact_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["low","medium","high"],"type":"string"}},{"type":"null"}],"description":"The failed executions impact to exclude","title":"Failed Executions Impact Exclude"},"description":"The failed executions impact to exclude"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages","title":"Cursor"},"description":"The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"The number of items per page","default":10,"title":"Per Page"},"description":"The number of items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchTestsResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/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__tests__test_id__get","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid5","description":"ID of the test","title":"Test Id"},"description":"ID of the test"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTestDetailsResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/repositories/{repository}/tests/{test_id}/stats/{stat}":{"get":{"tags":["test_insights"],"summary":"Get a single test stat as a time series","description":"Return one of the test stats bucketed over the requested time range, with a summary value over the full window. Binning adapts to the requested window (1h, 4h, 1d, 2d).","operationId":"ci-test-stats","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid5","description":"ID of the test","title":"Test Id"},"description":"ID of the test"},{"name":"stat","in":"path","required":true,"schema":{"enum":["success_count","failure_count","flaky_count","mean_duration"],"type":"string","title":"Stat"}},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the time range. Defaults to `end - 1 day` when omitted.","title":"Start"},"description":"Start of the time range. Defaults to `end - 1 day` when omitted."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise.","title":"End"},"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TestCountStatsResponse"},{"$ref":"#/components/schemas/TestDurationStatsResponse"}],"discriminator":{"propertyName":"stat","mapping":{"success_count":"#/components/schemas/TestCountStatsResponse","failure_count":"#/components/schemas/TestCountStatsResponse","flaky_count":"#/components/schemas/TestCountStatsResponse","mean_duration":"#/components/schemas/TestDurationStatsResponse"}},"title":"Response Ci-Test-Stats"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/repositories/{repository}/tests/{test_id}/health-transitions":{"get":{"tags":["test_insights"],"summary":"Get a test's health transitions over time","description":"Return the moments a test's health (healthy/flaky/broken) changed over the requested window: the edges of the series, not the full series. Each point is the verdict the test's health badge would have shown at that moment. It is computed from every run up to that point, over the same history the health badge reads. A window ending now therefore ends on the badge shown today; a window ending in the past ends on the badge as it read back then. Points are sampled per time bucket (binning adapts to the window), so a transition is timestamped to a bucket boundary rather than to an individual run.","operationId":"ci-test-health-transitions","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid5","description":"ID of the test","title":"Test Id"},"description":"ID of the test"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the time range. Defaults to `end - 1 day` when omitted.","title":"Start"},"description":"Start of the time range. Defaults to `end - 1 day` when omitted."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise.","title":"End"},"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTestHealthTransitionsResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/repositories/{repository}/tests/{test_id}/failures":{"get":{"tags":["test_insights"],"summary":"Get test failures","description":"Get test failures.","operationId":"ci-test-failures","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid5","description":"ID of the test","title":"Test Id"},"description":"ID of the test"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTestFailuresResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/repositories/{repository}/tests/{test_id}/failures/{failure_id}":{"get":{"tags":["test_insights"],"summary":"Get test failure","description":"Get test failure.","operationId":"ci-test-failure","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid5","description":"ID of the test","title":"Test Id"},"description":"ID of the test"},{"name":"failure_id","in":"path","required":true,"schema":{"type":"string","format":"uuid5","description":"ID of the failure","title":"Failure Id"},"description":"ID of the failure"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTestFailureResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/repositories/{repository}/tests/{test_id}/executions":{"get":{"tags":["test_insights"],"summary":"List a test's executions","description":"List the identities under which this test ran on the default branch over the requested time window, ordered by total executions.","operationId":"ci-test-executions","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid5","description":"ID of the test","title":"Test Id"},"description":"ID of the test"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"sort","in":"query","required":false,"schema":{"enum":["executions_count","pipeline_name","job_name"],"type":"string","description":"Sort field","default":"executions_count","title":"Sort"},"description":"Sort field"},{"name":"direction","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"Sort direction","default":"desc","title":"Direction"},"description":"Sort direction"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages","title":"Cursor"},"description":"The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"The number of items per page","default":10,"title":"Per Page"},"description":"The number of items per page"},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the time range. Defaults to `end - 1 day` when omitted.","title":"Start"},"description":"Start of the time range. Defaults to `end - 1 day` when omitted."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise.","title":"End"},"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTestExecutionsResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/repositories/{repository}/quarantines":{"get":{"tags":["test_insights"],"summary":"List quarantined tests","description":"List the tests currently quarantined in the repository, ordered by quarantine creation time ascending. A quarantine applies to a specific branch or to all branches when `branch` is `null`.\n\nPagination is opt-in: pass `per_page` (and optionally `cursor`) to receive a bounded page with RFC 5988 navigation links. Omitting `per_page` returns the full list in a single response — this shortcut exists for backward compatibility and is expected to go away once all callers paginate.","operationId":"get_quarantined_tests_with_params_token_auth_ci__owner__repositories__repository__quarantines_get","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Branch"}},{"name":"test_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Test Id"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/QuarantineSource"},{"type":"null"}],"title":"Source"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages.","title":"Cursor"},"description":"The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get the previous/next pages."},{"name":"per_page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"The number of items per page. Omit to receive the full list in a single response; pass a value to opt into RFC 5988 cursor pagination.","title":"Per Page"},"description":"The number of items per page. Omit to receive the full list in a single response; pass a value to opt into RFC 5988 cursor pagination."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuarantinedTestsResponse"}}},"headers":{"Link":{"description":"Pagination links (rfc5988). `next` and `prev` are each present only when there is a page to go to, so a response with nothing before or after it carries no `Link` header at all. To return to the first page, call the endpoint again without a `cursor`.","example":"Link: <https://api.mergify.com/v1/repos/Mergifyio/mergify-engine/logs?cursor=def&per_page=20>; rel=\"next\",\n  <https://api.mergify.com/v1/repos/Mergifyio/mergify-engine/logs?cursor=abc&per_page=20>; rel=\"prev\"","schema":{"type":"string"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}},"post":{"tags":["test_insights"],"summary":"Mark a test as quarantined","description":"Add a test to the CI Quarantine for a repository","operationId":"add_ci_quarantine_ci__owner__repositories__repository__quarantines_post","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTestToQuarantinePayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestAddedToQuarantineResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}":{"get":{"tags":["test_insights"],"summary":"Get a quarantined test","description":"Retrieve a single quarantined test by its quarantine ID.","operationId":"get_quarantine_by_id_ci__owner__repositories__repository__quarantines__quarantine_id__get","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"quarantine_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Quarantine Id"}},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuarantinedTest"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}},"delete":{"tags":["test_insights"],"summary":"Remove a quarantine","description":"Remove a quarantine with its id","operationId":"remove_quarantine_by_id_ci__owner__repositories__repository__quarantines__quarantine_id__delete","security":[{"AdminApplicationKey":[]},{"CIApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"quarantine_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Quarantine Id"}},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"},"204":{"description":"No content"}}}},"/ci/{owner}/runners/stats/{stat}":{"get":{"tags":["ci_insights"],"summary":"Get a single runner stat as a time series","description":"Return one of the runner stats bucketed over the requested time range, with a summary value over the full window.","operationId":"ci-runner-stats","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"stat","in":"path","required":true,"schema":{"enum":["success_rate","active_runners","active_jobs","utilization_rate","avg_duration","jobs_per_hour","avg_jobs_per_hour","min_duration","median_duration","p95_duration","p99_duration","max_duration"],"type":"string","title":"Stat"}},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"runner_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The runner name to filter on","title":"Runner Name"},"description":"The runner name to filter on"},{"name":"runner_name_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The runner name to exclude","title":"Runner Name Exclude"},"description":"The runner name to exclude"},{"name":"runner_group_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The runner group name to filter on","title":"Runner Group Name"},"description":"The runner group name to filter on"},{"name":"runner_group_name_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The runner group name to exclude","title":"Runner Group Name Exclude"},"description":"The runner group name to exclude"},{"name":"runner_labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The runner labels to filter on (all must match)","title":"Runner Labels"},"description":"The runner labels to filter on (all must match)"},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the time range. Defaults to `end - 1 day` when omitted.","title":"Start"},"description":"Start of the time range. Defaults to `end - 1 day` when omitted."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise.","title":"End"},"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RunnerDurationStatsResponse"},{"$ref":"#/components/schemas/RunnerRateStatsResponse"},{"$ref":"#/components/schemas/RunnerCountStatsResponse"}],"discriminator":{"propertyName":"stat","mapping":{"avg_duration":"#/components/schemas/RunnerDurationStatsResponse","min_duration":"#/components/schemas/RunnerDurationStatsResponse","median_duration":"#/components/schemas/RunnerDurationStatsResponse","p95_duration":"#/components/schemas/RunnerDurationStatsResponse","p99_duration":"#/components/schemas/RunnerDurationStatsResponse","max_duration":"#/components/schemas/RunnerDurationStatsResponse","success_rate":"#/components/schemas/RunnerRateStatsResponse","jobs_per_hour":"#/components/schemas/RunnerRateStatsResponse","avg_jobs_per_hour":"#/components/schemas/RunnerRateStatsResponse","utilization_rate":"#/components/schemas/RunnerRateStatsResponse","active_runners":"#/components/schemas/RunnerCountStatsResponse","active_jobs":"#/components/schemas/RunnerCountStatsResponse"}},"title":"Response Ci-Runner-Stats"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/queue/stats/{stat}":{"get":{"tags":["ci_insights"],"summary":"Get a single CI queue stat as a time series","description":"Return one of the CI queue stats bucketed over the requested time range, with a summary value over the full window.","operationId":"ci-queue-stats","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"stat","in":"path","required":true,"schema":{"enum":["total_jobs","avg_wait_time","min_wait_time","median_wait_time","p95_wait_time","p99_wait_time","max_wait_time"],"type":"string","title":"Stat"}},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The labels to filter on (all must match)","title":"Labels"},"description":"The labels to filter on (all must match)"},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the time range. Defaults to `end - 1 day` when omitted.","title":"Start"},"description":"Start of the time range. Defaults to `end - 1 day` when omitted."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise.","title":"End"},"description":"End of the time range. Defaults to `start + 1 day` when only start is provided, or `now` otherwise."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueStatsResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/ci/{owner}/repositories/{repository}/tests/stats/{stat}":{"get":{"tags":["test_insights"],"summary":"Get a single test stat as a time series","description":"Return one test stat with a window summary `value` and a per-day `value_over_time` series of failed executions.","operationId":"ci-tests-stats","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"stat","in":"path","required":true,"schema":{"enum":["total_tests","healthy_tests","broken_tests","flaky_tests","failed_executions"],"type":"string","title":"Stat"}},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"test_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The test name to filter on","title":"Test Name"},"description":"The test name to filter on"},{"name":"test_name_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The test name to exclude","title":"Test Name Exclude"},"description":"The test name to exclude"},{"name":"job_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The job name to filter on","title":"Job Name"},"description":"The job name to filter on"},{"name":"job_name_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The job name to exclude","title":"Job Name Exclude"},"description":"The job name to exclude"},{"name":"pipeline_name","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The pipeline name to filter on","title":"Pipeline Name"},"description":"The pipeline name to filter on"},{"name":"pipeline_name_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":255},{"type":"null"}],"description":"The pipeline name to exclude","title":"Pipeline Name Exclude"},"description":"The pipeline name to exclude"},{"name":"health_confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/HealthConfidence"}},{"type":"null"}],"description":"The health confidence to filter on","title":"Health Confidence"},"description":"The health confidence to filter on"},{"name":"health_confidence_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/HealthConfidence"}},{"type":"null"}],"description":"The health confidence to exclude","title":"Health Confidence Exclude"},"description":"The health confidence to exclude"},{"name":"failed_executions_impact","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["low","medium","high"],"type":"string"}},{"type":"null"}],"description":"The failed executions impact to filter on","title":"Failed Executions Impact"},"description":"The failed executions impact to filter on"},{"name":"failed_executions_impact_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["low","medium","high"],"type":"string"}},{"type":"null"}],"description":"The failed executions impact to exclude","title":"Failed Executions Impact Exclude"},"description":"The failed executions impact to exclude"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTestStatResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/scheduled_freeze":{"get":{"tags":["scheduled_freeze"],"summary":"Get scheduled freezes","description":"Get all the ongoing or scheduled freezes for the repository specified in the path","operationId":"get_scheduled_freezes_repos__owner___repository__scheduled_freeze_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetScheduledFreezesResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}},"post":{"tags":["scheduled_freeze"],"summary":"Create a scheduled freeze","description":"Create a scheduled freeze for the repository specified in the path","operationId":"create_scheduled_freeze_repos__owner___repository__scheduled_freeze_post","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScheduledQueueFreezePayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledFreezeObjectResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/scheduled_freeze/{freeze_id}":{"patch":{"tags":["scheduled_freeze"],"summary":"Update a scheduled freeze","description":"Update an existing scheduled freeze on the repository specified in the path. Only the fields provided in the request body will be updated.","operationId":"update_scheduled_freeze_repos__owner___repository__scheduled_freeze__freeze_id__patch","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"freeze_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The scheduled freeze `id`","title":"Freeze Id"},"description":"The scheduled freeze `id`"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateScheduledFreezePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledFreezeObjectResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"The scheduled freeze with the given id does not exist"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"},"400":{"description":"The scheduled freeze `start` attribute cannot be updated, because the scheduled freeze has already started"}}},"delete":{"tags":["scheduled_freeze"],"summary":"Delete a scheduled freeze","description":"Delete an existing scheduled freeze on the repository specified in the path","operationId":"delete_scheduled_freeze_repos__owner___repository__scheduled_freeze__freeze_id__delete","deprecated":true,"security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"freeze_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The scheduled freeze `id`","title":"Freeze Id"},"description":"The scheduled freeze `id`"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DeleteScheduledFreezePayload"},{"type":"null"}],"title":"Input Payload"}}}},"responses":{"204":{"description":"Successful Response"},"403":{"description":"Forbidden"},"404":{"description":"The scheduled freeze with the given id does not exist"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/scheduled_freeze/{freeze_id}/delete":{"post":{"tags":["scheduled_freeze"],"summary":"Delete a scheduled freeze","description":"Delete an existing scheduled freeze on the repository specified in the path","operationId":"delete_scheduled_freeze_repos__owner___repository__scheduled_freeze__freeze_id__delete_post","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"freeze_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The scheduled freeze `id`","title":"Freeze Id"},"description":"The scheduled freeze `id`"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DeleteScheduledFreezePayload"},{"type":"null"}],"title":"Input Payload"}}}},"responses":{"204":{"description":"Successful Response"},"403":{"description":"Forbidden"},"404":{"description":"The scheduled freeze with the given id does not exist"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/merge-queue/branches":{"get":{"tags":["merge_queue"],"summary":"Get branches with active merge queues","description":"Get the list of branches that currently have active merge queues","operationId":"get_merge_queue_branches_repos__owner___repository__merge_queue_branches_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeQueueBranches"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/merge-queue/status":{"get":{"tags":["merge_queue"],"summary":"Get the current status of the merge queue","description":"Get the current status of the speculative checks, batches, and queued pull requests in the merge queue","operationId":"get_merge_queue_status_endpoint_repos__owner___repository__merge_queue_status_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name of the branch","title":"Branch"},"description":"The name of the branch"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeQueueStatus"},"example":{"scope_queues":{"__default__":["550e8400-e29b-41d4-a716-446655440001","550e8400-e29b-41d4-a716-446655440002"]},"batches":[{"id":"550e8400-e29b-41d4-a716-446655440001","parent_ids":[],"name":"Batch 1","status":{"code":"running"},"started_at":"2025-11-05T14:05:00Z","estimated_merge_at":"2025-11-05T14:35:00Z","estimated_ci_finish_at":"2025-11-05T14:34:30Z","ci_finished_at":"2025-11-05T14:34:30Z","scopes":["frontend","backend"],"queue_rule_name":"default","checks_summary":{"passed":45,"total":67},"pull_requests":[{"number":1421,"title":"feat(auth): add \"Reset Password\" flow to login UI","url":"https://github.com/org/repo/pull/1421","author":{"id":123,"login":"james"},"queued_at":"2025-11-05T13:30:00Z","priority_alias":"high","priority_rule_name":"hotfix","labels":["feature","auth"],"github_labels":[{"id":1,"name":"feature","color":"0e8a16","default":false},{"id":2,"name":"auth","color":"1d76db","default":false}],"scopes":["frontend"]}]},{"id":"550e8400-e29b-41d4-a716-446655440002","parent_ids":["550e8400-e29b-41d4-a716-446655440001"],"name":"Batch 2","status":{"code":"bisecting"},"started_at":"2025-11-05T13:35:00Z","estimated_merge_at":"2025-11-05T15:35:00Z","estimated_ci_finish_at":"2025-11-05T15:34:30Z","ci_finished_at":"2025-11-05T14:34:30Z","scopes":["frontend"],"queue_rule_name":"default","checks_summary":{"passed":15,"total":28},"sub_batches":[{"id":"550e8400-e29b-41d4-a716-446655440003","parent_ids":[],"name":"Sub Batch 1","status":{"code":"merged"},"started_at":"2025-11-05T13:40:00Z","estimated_merge_at":"2025-11-05T13:50:00Z","estimated_ci_finish_at":"2025-11-05T13:49:30Z","ci_finished_at":"2025-11-05T13:49:30Z","scopes":["frontend"],"queue_rule_name":"default","checks_summary":{"passed":15,"total":15},"pull_requests":[]},{"id":"550e8400-e29b-41d4-a716-446655440004","parent_ids":[],"name":"Sub Batch 2","status":{"code":"running"},"started_at":"2025-11-05T13:50:00Z","estimated_merge_at":"2025-11-05T14:00:00Z","estimated_ci_finish_at":"2025-11-05T13:59:30Z","ci_finished_at":"2025-11-05T14:34:30Z","scopes":["frontend"],"queue_rule_name":"default","checks_summary":{"passed":0,"total":13},"pull_requests":[]}],"pull_requests":[]}],"waiting_pull_requests":[]}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/merge-queue/pull/{pr_number}":{"get":{"tags":["merge_queue"],"summary":"Get a pull request in the merge queue","description":"Get details about a specific pull request in the merge queue","operationId":"get_merge_queue_pull_request_repos__owner___repository__merge_queue_pull__pr_number__get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"pr_number","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"The pull request number","title":"Pr Number"},"description":"The pull request number"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeQueuePullRequest"}}}},"403":{"description":"Forbidden"},"404":{"description":"The pull request is not found in any merge queue."},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/merge-queue/pull/{pr_number}/dequeue-impact":{"get":{"tags":["merge_queue"],"summary":"Preview the impact of dequeuing a pull request","description":"Return how many batches would be interrupted, how many other pull requests would be rechecked, and how many stacked pull requests would also be dequeued if the given pull request is manually dequeued","operationId":"get_merge_queue_dequeue_impact_repos__owner___repository__merge_queue_pull__pr_number__dequeue_impact_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"pr_number","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"The pull request number","title":"Pr Number"},"description":"The pull request number"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeQueueDequeueImpact"}}}},"403":{"description":"Forbidden"},"404":{"description":"The pull request is not found in any merge queue."},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/merge-queue/pull/{pr_number}/dequeue":{"post":{"tags":["merge_queue"],"summary":"Dequeue a pull request from the merge queue","description":"Manually remove the given pull request (and its queued stack successors) from the merge queue","operationId":"dequeue_merge_queue_pull_request_repos__owner___repository__merge_queue_pull__pr_number__dequeue_post","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"pr_number","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"description":"The pull request number","title":"Pr Number"},"description":"The pull request number"},{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"Forbidden"},"404":{"description":"The pull request is not found in any merge queue."},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/repos/{owner}/{repository}/merge-queue/pause":{"put":{"tags":["merge_queue"],"summary":"Pause the merge queue","description":"Pause the merge of the requested repository","operationId":"create_merge_queue_pause_repos__owner___repository__merge_queue_pause_put","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeQueuePausePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeQueuePauseResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}},"delete":{"tags":["merge_queue"],"summary":"Unpause merge queue","description":"Unpause the merge queue of the requested repository","operationId":"delete_merge_queue_pause_repos__owner___repository__merge_queue_pause_delete","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}},"get":{"tags":["merge_queue"],"summary":"Get merge queue pause data","description":"Checks if the merge queue is paused and returns the pause data","operationId":"get_merge_queue_pause_repos__owner___repository__merge_queue_pause_get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeQueuePauseResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/products/{owner}/{repository}":{"put":{"tags":["products"],"summary":"Manage enabled products","description":"Manage enabled products on a repository","operationId":"manage_products_on_a_github_repository_products__owner___repository__put","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"},{"name":"repository","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w\\-\\.]+$","description":"The name of the repository","title":"Repository"},"description":"The name of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryBodyInput"}}}},"responses":{"204":{"description":"No content"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}},"/default_products/{owner}":{"get":{"tags":["products"],"summary":"Get default enabled products","description":"Get default enabled products for new repositories","operationId":"get_default_enabled_products_default_products__owner__get","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultProductsResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}},"put":{"tags":["products"],"summary":"Manage default enabled products","description":"Manage default enabled products for new repositories","operationId":"manage_default_enabled_products_default_products__owner__put","security":[{"AdminApplicationKey":[]},{"MergifyTokenBearerAuth":[]},{"GitHubTokenBearerAuth":[]}],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-zA-Z0-9\\-]+$","description":"The owner of the repository","title":"Owner"},"description":"The owner of the repository"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryBodyInput"}}}},"responses":{"204":{"description":"No content"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"409":{"description":"Conflict"},"422":{"description":"Unprocessable entity"}}}}},"components":{"schemas":{"ActivityLogAggregateResponse":{"properties":{"total":{"type":"integer","title":"Total"},"interval_size_seconds":{"type":"integer","title":"Interval Size Seconds"},"histogram":{"items":{"$ref":"#/components/schemas/HistogramBucket"},"type":"array","title":"Histogram"},"by_event_type":{"items":{"$ref":"#/components/schemas/FacetCount"},"type":"array","title":"By Event Type"},"by_outcome":{"items":{"$ref":"#/components/schemas/FacetCount"},"type":"array","title":"By Outcome"},"by_trigger":{"items":{"$ref":"#/components/schemas/FacetCount"},"type":"array","title":"By Trigger"},"by_pull_request":{"items":{"$ref":"#/components/schemas/FacetCount"},"type":"array","title":"By Pull Request"},"by_batch_pull_request":{"items":{"$ref":"#/components/schemas/FacetCount"},"type":"array","title":"By Batch Pull Request"}},"type":"object","required":["total","interval_size_seconds","histogram","by_event_type","by_outcome","by_trigger","by_pull_request","by_batch_pull_request"],"title":"ActivityLogAggregateResponse","description":"Aggregations over the same event set `/logs` paginates through.\n\n- `total` — count of events matching the filters (over the full set,\n  not just the current page).\n- `interval_size_seconds` — bucket width auto-picked from the time\n  range by `TimeRange.get_activity_log_interval_size()`. Dense\n  ladder tuned for per-event texture (15s → 30s → 2min → 10min →\n  20min → 1h → 4h → 8h → 1d), distinct from the smoother\n  `get_interval_size()` ladder used by queue-stats charts.\n- `histogram` — uniform list of `{start, end, count}` buckets\n  tiling the time range. Zero-filled server-side so the client\n  receives a complete grid (no missing buckets to fill in JS).\n- `by_event_type` — counts per event type, ordered by `count` desc.\n- `by_outcome` — counts per derived outcome label\n  (`success` / `failure` / `pending` / `neutral`), ordered by\n  `count` desc.\n- `by_trigger` — counts per trigger string, ordered by `count` desc.\n  Top 200 triggers by count in the window (single `GROUP BY` over\n  the filter set, capped); the dashboard uses it as the source of\n  truth for the Datadog-style trigger exclusion facet.\n- `by_pull_request` — counts per pull-request number in the window,\n  ordered by `count` desc, top 200. Window-derived facet (mirrors\n  `by_trigger`): self-excludes both `pull_request` and\n  `not_pull_request` filters so the sidebar always shows the full\n  window distribution. Events with `pull_request=null` are excluded.\n  PR number is returned as a string for uniform JSON serialisation.\n- `by_batch_pull_request` — counts per batch (draft) PR number in the\n  window, ordered by `count` desc, top 200. Window-derived facet\n  (mirrors `by_pull_request`): self-excludes both `batch_pull` and\n  `not_batch_pull`. The count covers the `checks_start` / `checks_end`\n  events that snapshot the number — the bisection events the\n  `batch_pull` filter pulls in alongside are keyed to the batch id,\n  not the number, so they aren't attributed here. Number is returned\n  as a string for uniform JSON serialisation.\n\n`base_ref` is an input-only filter: no filter UI and its cardinality\nmakes it unsuitable as a sidebar facet."},"Actor":{"properties":{"type":{"type":"string","enum":["application","user"],"title":"Type"},"id":{"anyOf":[{"type":"integer"},{"type":"string","format":"uuid"}],"title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["type","id","name"],"title":"Actor"},"AddTestToQuarantinePayload":{"properties":{"test_name":{"type":"string","maxLength":10000,"title":"Test Name","description":"The fully qualified name of the test that needs to be quarantined"},"reason":{"type":"string","maxLength":10000,"title":"Reason","description":"Reason for the test being added to the quarantine"},"branch":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Branch","description":"Branch name on which the test should be quarantined. If not specified, it will be quarantined on all branches."}},"type":"object","required":["test_name","reason"],"title":"AddTestToQuarantinePayload"},"ApplicationAccountScope":{"properties":{"id":{"type":"integer","title":"Id"},"login":{"type":"string","title":"Login"}},"type":"object","required":["id","login"],"title":"ApplicationAccountScope"},"ApplicationResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"account_scope":{"$ref":"#/components/schemas/ApplicationAccountScope"},"scope":{"type":"string","enum":["admin","ci"],"title":"Scope"}},"type":"object","required":["id","name","account_scope","scope"],"title":"ApplicationResponse"},"AutoQuarantineConfigEventLogAttributes":{"properties":{"ignore_broken_on_default_branch":{"type":"boolean","title":"Ignore Broken On Default Branch"}},"type":"object","required":["ignore_broken_on_default_branch"],"title":"AutoQuarantineConfigEventLogAttributes"},"AverageIdleQueueTimeResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/IdleTimeGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"AverageIdleQueueTimeResponse"},"BaseRefsResponse":{"properties":{"base_refs":{"items":{"type":"string"},"type":"array","title":"Base Refs"}},"type":"object","required":["base_refs"],"title":"BaseRefsResponse"},"BatchChecksSummary":{"properties":{"passed":{"type":"integer","title":"Passed"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["passed","total"],"title":"BatchChecksSummary"},"BatchReason":{"properties":{"kind":{"type":"string","enum":["scope","directory","queue_order"],"title":"Kind"},"shared_scopes":{"items":{"type":"string"},"type":"array","title":"Shared Scopes"},"shared_directories":{"items":{"type":"string"},"type":"array","title":"Shared Directories"},"peer_pull_request_numbers":{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"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","affinity_score"],"title":"BatchReason","description":"Why a PR shares its batch with the other PRs in it.\n\nRe-derived at serialization time from each member's persisted similarity\nsignals — the same ``scopes`` / ``changed_directories`` the batching\nalgorithm groups on — so it stays correct as a batch is bisected and members\nleave. It reports the signal the batch's *current* members actually share,\nnot a replay of the formation-time greedy pick order. ``None`` when the batch\nholds a single PR (nothing to explain) or for a not-yet-batched waiting PR."},"BatchSizeBounds":{"anyOf":[{"type":"integer","maximum":128.0,"minimum":1.0},{"properties":{"min":{"type":"integer","maximum":128.0,"minimum":1.0,"title":"Min"},"max":{"type":"integer","maximum":128.0,"minimum":1.0,"title":"Max"}},"additionalProperties":false,"type":"object","required":["min","max"],"title":"BatchSizeBounds"}]},"BatchSizeGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/BatchSizeInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"BatchSizeGroupResponse"},"BatchSizeInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"avg_batch_size":{"type":"number","title":"Avg Batch Size"},"max_batch_size":{"type":"integer","title":"Max Batch Size"},"min_batch_size":{"type":"integer","title":"Min Batch Size"},"sum_batch_size":{"type":"integer","title":"Sum Batch Size"},"count_batch_size":{"type":"integer","title":"Count Batch Size"}},"type":"object","required":["start","end","avg_batch_size","max_batch_size","min_batch_size","sum_batch_size","count_batch_size"],"title":"BatchSizeInInterval"},"BatchSizeResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/BatchSizeGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"BatchSizeResponse"},"BatchStatus":{"properties":{"code":{"type":"string","enum":["running","bisecting","preparing","failed","merged","waiting_for_merge","waiting_for_previous_batches","waiting_for_requeue","waiting_schedule","waiting_for_batch","waiting_for_checks_slot","frozen"],"title":"Batch Status","x-mergify-enum":[{"description":"The batch is set up and its CI checks are running.","title":"CI Running"},{"description":"The batch failed, so Mergify is splitting it into smaller sub-batches and testing those to identify the pull request responsible and merge the others.","title":"Bisecting Batch"},{"description":"Mergify is setting the batch up so it can be tested.","title":"Preparing"},{"description":"The batch failed, either because Mergify could not prepare it for testing or because its checks did not pass. It is removed from the queue and its pull requests have to be fixed.","title":"Failed"},{"description":"The batch was merged.","title":"Merged"},{"description":"The batch's checks passed. It merges once the batches ahead of it have merged.","title":"Waiting to Merge"},{"description":"A batch ahead in the queue failed, so this batch is held while Mergify identifies the cause. It has either not started its own checks yet, or already ran and failed and is parked until the cause is known.","title":"Waiting on Previous Batch"},{"description":"A batch ahead in the queue failed, so this batch is requeued and retested against the updated queue.","title":"Requeuing"},{"description":"The batch's merge conditions are met, but a schedule condition is not. It continues once the schedule allows it.","title":"Waiting for Schedule"},{"description":"Mergify is waiting for more pull requests to fill the batch, or for the maximum wait time to elapse, before starting it.","title":"Filling Batch"},{"description":"The batch is ready to be tested, but every slot for running checks in parallel is taken. It starts as soon as one frees up.","title":"Waiting for CI Slot"},{"description":"The batch's checks passed, but merges are frozen. It merges once the freeze is lifted.","title":"Frozen"}],"x-mergify-has-data-type":true},"batch_filled_slots":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Batch Filled Slots"},"max_batch_slots":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Batch Slots"},"batch_max_start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Batch Max Start At"},"retries":{"type":"integer","title":"Retries","default":0},"max_retries":{"type":"integer","title":"Max Retries","default":0}},"type":"object","required":["code"],"title":"BatchStatus"},"BisectionEndGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/BisectionEndInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"BisectionEndGroupResponse"},"BisectionEndInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"bisection_completed_count":{"type":"integer","title":"Bisection Completed Count"},"culprit_found_count":{"type":"integer","title":"Culprit Found Count"},"max_failure_reached_count":{"type":"integer","title":"Max Failure Reached Count"}},"type":"object","required":["start","end","bisection_completed_count","culprit_found_count","max_failure_reached_count"],"title":"BisectionEndInInterval"},"BisectionResponse":{"properties":{"started":{"items":{"$ref":"#/components/schemas/BisectionStartGroupResponse"},"type":"array","title":"Started"},"completed":{"items":{"$ref":"#/components/schemas/BisectionEndGroupResponse"},"type":"array","title":"Completed"}},"type":"object","required":["started","completed"],"title":"BisectionResponse"},"BisectionStartGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/BisectionStartInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"BisectionStartGroupResponse"},"BisectionStartInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"bisection_count":{"type":"integer","title":"Bisection Count"},"avg_depth":{"type":"number","title":"Avg Depth"},"max_depth":{"type":"integer","title":"Max Depth"},"avg_batch_size_before_split":{"type":"number","title":"Avg Batch Size Before Split"}},"type":"object","required":["start","end","bisection_count","avg_depth","max_depth","avg_batch_size_before_split"],"title":"BisectionStartInInterval"},"Branch":{"properties":{"name":{"type":"string","title":"Name","description":"The name of the branch"}},"type":"object","required":["name"],"title":"Branch"},"BriefMergeabilityCheck":{"properties":{"check_type":{"type":"string","enum":["in_place","draft_pr","trusted"],"title":"Check Type","description":"The type of queue check: `in_place` (checks run on the pull request itself), `draft_pr` (checks run on a Mergify draft pull request), or `trusted` (no fresh queue check ran; the pull request was merged trusting its own green CI because the base commits it was missing did not affect its scopes)."},"pull_request_number":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Pull Request Number","description":"The number of the pull request used by the speculative check"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"The timestamp when the checks have started for this pull request"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At","description":"The timestamp when the checks have ended for this pull request"},"state":{"$ref":"#/components/schemas/QueueCheckState","description":"The global state of the checks"}},"type":"object","required":["check_type","pull_request_number","started_at","ended_at","state"],"title":"BriefMergeabilityCheck"},"CIAverageRuntimeResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/CIRuntimeGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"CIAverageRuntimeResponse"},"CIRuntimeGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/RuntimeInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"CIRuntimeGroupResponse"},"CheckOutcomeInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"check_outcome":{"type":"string","title":"Check Outcome"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["start","end","check_outcome","count"],"title":"CheckOutcomeInInterval"},"ChecksOutcomeByIntervalGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/CheckOutcomeInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"ChecksOutcomeByIntervalGroupResponse"},"ChecksOutcomeByIntervalResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ChecksOutcomeByIntervalGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"ChecksOutcomeByIntervalResponse"},"ChecksOutcomeGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"$ref":"#/components/schemas/QueueChecksOutcome"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"ChecksOutcomeGroupResponse"},"ChecksOutcomeResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ChecksOutcomeGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"ChecksOutcomeResponse"},"ChecksRetriesGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/ChecksRetriesInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"ChecksRetriesGroupResponse"},"ChecksRetriesInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"total_retries":{"type":"integer","title":"Total Retries"},"sessions_with_retries":{"type":"integer","title":"Sessions With Retries"},"recovered":{"type":"integer","title":"Recovered"},"not_recovered":{"type":"integer","title":"Not Recovered"},"recovery_rate":{"type":"number","title":"Recovery Rate"},"avg_retry_depth":{"type":"number","title":"Avg Retry Depth"},"max_retry_depth":{"type":"integer","title":"Max Retry Depth"}},"type":"object","required":["start","end","total_retries","sessions_with_retries","recovered","not_recovered","recovery_rate","avg_retry_depth","max_retry_depth"],"title":"ChecksRetriesInInterval"},"ChecksRetriesResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ChecksRetriesGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"ChecksRetriesResponse"},"CreateScheduledQueueFreezePayload":{"properties":{"reason":{"type":"string","maxLength":10000,"title":"Reason","description":"The reason for the scheduled freeze."},"start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start","description":"When the scheduled freeze begins (date and time in ISO 8601 format without TZ). Begins now if the attribute is null."},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End","description":"When the scheduled freeze ends (date and time in ISO 8601 format without TZ)."},"timezone":{"type":"string","title":"Timezone","description":"Timezone where the freeze is expected to happen."},"matching_conditions":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Input"},{"type":"string"}]},"type":"array","title":"Matching Conditions","description":"List of conditions used to match pull requests that need to be frozen during the scheduled freeze. Defaults to an empty list, which matches all pull requests."},"exclude_conditions":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Input"},{"type":"string"}]},"type":"array","title":"Exclude Conditions","description":"List of conditions used to exclude pull requests from the scheduled freeze. Pull requests matching these conditions will not be frozen."}},"type":"object","required":["reason","start","timezone"],"title":"CreateScheduledQueueFreezePayload"},"DayJSON":{"properties":{"times":{"items":{"$ref":"#/components/schemas/TimeRangeJSON"},"type":"array","title":"Times"}},"type":"object","required":["times"],"title":"DayJSON"},"DefaultProductsResponse":{"properties":{"products":{"items":{"type":"string","enum":["ci_insights","merge_protections","workflow_automation","merge_queue"]},"type":"array","title":"Products"}},"type":"object","required":["products"],"title":"DefaultProductsResponse"},"DeleteScheduledFreezePayload":{"properties":{"delete_reason":{"type":"string","title":"Delete Reason","description":"The reason for the deletion"}},"type":"object","required":["delete_reason"],"title":"DeleteScheduledFreezePayload"},"DeprecationInfo":{"properties":{"message":{"type":"string","title":"Message","description":"Human-readable deprecation reason"},"deadline":{"type":"string","format":"date","title":"Deadline","description":"Date after which the deprecated configuration will be rejected"},"path_to_field":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Path To Field","description":"Path to the deprecated field inside the configuration, or null when the deprecation is not tied to a specific field"}},"type":"object","required":["message","deadline","path_to_field"],"title":"DeprecationInfo"},"EnteredCountResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/EnteredGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"EnteredCountResponse"},"EnteredGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/EnteredInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"EnteredGroupResponse"},"EnteredInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"entered":{"type":"integer","title":"Entered"}},"type":"object","required":["start","end","entered"],"title":"EnteredInInterval"},"Evaluation":{"properties":{"pull_request":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Pull Request"},"match":{"type":"boolean","title":"Match"},"evaluation_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluation Error"},"related_checks":{"items":{"type":"string"},"type":"array","title":"Related Checks"},"next_evaluation_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Evaluation At"}},"type":"object","required":["pull_request","match","evaluation_error","related_checks","next_evaluation_at"],"title":"Evaluation"},"EventAssign":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.assign","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventAssignMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventAssign"},"EventAssignMetadata":{"properties":{"added":{"items":{"type":"string"},"type":"array","title":"Added"},"removed":{"items":{"type":"string"},"type":"array","title":"Removed"}},"type":"object","required":["added","removed"],"title":"EventAssignMetadata"},"EventBackport":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.backport","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCopyMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventBackport"},"EventCiInsightsAutoQuarantineDisabled":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"ci_insights.auto_quarantine.disabled","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCiInsightsAutoQuarantineDisabledMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventCiInsightsAutoQuarantineDisabled"},"EventCiInsightsAutoQuarantineDisabledMetadata":{"properties":{"disabled_by":{"$ref":"#/components/schemas/Actor"},"disabled_at":{"type":"string","format":"date-time","title":"Disabled At"},"auto_quarantine_config_attributes":{"$ref":"#/components/schemas/AutoQuarantineConfigEventLogAttributes"},"disabled_by_staff":{"type":"boolean","title":"Disabled By Staff"}},"type":"object","required":["disabled_by","disabled_at","auto_quarantine_config_attributes","disabled_by_staff"],"title":"EventCiInsightsAutoQuarantineDisabledMetadata"},"EventCiInsightsAutoQuarantineEnabled":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"ci_insights.auto_quarantine.enabled","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCiInsightsAutoQuarantineEnabledMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventCiInsightsAutoQuarantineEnabled"},"EventCiInsightsAutoQuarantineEnabledMetadata":{"properties":{"enabled_by":{"$ref":"#/components/schemas/Actor"},"enabled_at":{"type":"string","format":"date-time","title":"Enabled At"},"auto_quarantine_config_attributes":{"$ref":"#/components/schemas/AutoQuarantineConfigEventLogAttributes"},"enabled_by_staff":{"type":"boolean","title":"Enabled By Staff"}},"type":"object","required":["enabled_by","enabled_at","auto_quarantine_config_attributes","enabled_by_staff"],"title":"EventCiInsightsAutoQuarantineEnabledMetadata"},"EventCiInsightsAutoQuarantineModified":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"ci_insights.auto_quarantine.modified","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCiInsightsAutoQuarantineModifiedMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventCiInsightsAutoQuarantineModified"},"EventCiInsightsAutoQuarantineModifiedMetadata":{"properties":{"updated_by":{"$ref":"#/components/schemas/Actor"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"auto_quarantine_config_attributes_before":{"$ref":"#/components/schemas/AutoQuarantineConfigEventLogAttributes"},"auto_quarantine_config_attributes_after":{"$ref":"#/components/schemas/AutoQuarantineConfigEventLogAttributes"},"updated_by_staff":{"type":"boolean","title":"Updated By Staff"}},"type":"object","required":["updated_by","updated_at","auto_quarantine_config_attributes_before","auto_quarantine_config_attributes_after","updated_by_staff"],"title":"EventCiInsightsAutoQuarantineModifiedMetadata"},"EventCiInsightsJobRetried":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"ci_insights.job_retried","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCiInsightsJobRetriedMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventCiInsightsJobRetried"},"EventCiInsightsJobRetriedMetadata":{"properties":{"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"rule_name":{"type":"string","title":"Rule Name"},"max_retry":{"type":"integer","title":"Max Retry"},"retry_mode":{"type":"string","enum":["job","pipeline"],"title":"Retry Mode"},"retry_attempt":{"type":"integer","title":"Retry Attempt"},"condition_matches":{"items":{"anyOf":[{"$ref":"#/components/schemas/SimpleConditionMatchSerialized"},{"$ref":"#/components/schemas/LogPatternAnnotationConditionMatchSerialized"},{"$ref":"#/components/schemas/LogPatternJobLogConditionMatchSerialized"}]},"type":"array","title":"Condition Matches"},"outcome":{"type":"string","enum":["retried","skipped_quota_exceeded"],"title":"Outcome"},"workflow_run_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Run Id"},"job_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Url"}},"type":"object","required":["rule_id","rule_name","max_retry","retry_mode","retry_attempt","condition_matches","outcome","workflow_run_id","job_url"],"title":"EventCiInsightsJobRetriedMetadata"},"EventClose":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.close","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCloseMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventClose"},"EventCloseMetadata":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"EventCloseMetadata"},"EventCommandDequeue":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"command.dequeue","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCommandMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventCommandDequeue"},"EventCommandMetadata":{"properties":{"author":{"$ref":"#/components/schemas/GitHubAccount"},"comment_id":{"type":"integer","title":"Comment Id"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"command_trigger":{"anyOf":[{"type":"string","enum":["comment","checkbox"]},{"type":"null"}],"title":"Command Trigger"},"trigger_comment_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Comment Url"}},"type":"object","required":["author","comment_id","session_id","command_trigger","trigger_comment_url"],"title":"EventCommandMetadata"},"EventCommandQueue":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"command.queue","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCommandMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventCommandQueue"},"EventComment":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.comment","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCommentMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventComment"},"EventCommentMetadata":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"EventCommentMetadata"},"EventCopy":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.copy","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventCopyMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventCopy"},"EventCopyMetadata":{"properties":{"to":{"type":"string","title":"To"},"pull_request_number":{"type":"integer","title":"Pull Request Number"},"conflicts":{"type":"boolean","title":"Conflicts"}},"type":"object","required":["to","pull_request_number","conflicts"],"title":"EventCopyMetadata"},"EventDeleteHeadBranch":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.delete_head_branch","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventDeleteHeadBranchMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventDeleteHeadBranch"},"EventDeleteHeadBranchMetadata":{"properties":{"branch":{"type":"string","title":"Branch"}},"type":"object","required":["branch"],"title":"EventDeleteHeadBranchMetadata"},"EventDequeue":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"metadata":{"$ref":"#/components/schemas/EventNoMetadata"},"type":{"type":"string","const":"action.dequeue","title":"Type"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","metadata","type"],"title":"EventDequeue"},"EventDismissReviews":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.dismiss_reviews","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventDismissReviewsMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventDismissReviews"},"EventDismissReviewsMetadata":{"properties":{"users":{"items":{"type":"string"},"type":"array","title":"Users"}},"type":"object","required":["users"],"title":"EventDismissReviewsMetadata"},"EventEdit":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.edit","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventEditMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventEdit"},"EventEditMetadata":{"properties":{"draft":{"type":"boolean","title":"Draft"}},"type":"object","required":["draft"],"title":"EventEditMetadata"},"EventGithubActions":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.github_actions","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventGithubActionsMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventGithubActions"},"EventGithubActionsMetadata":{"properties":{"workflow":{"type":"string","title":"Workflow"},"inputs":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"}]},"type":"object","title":"Inputs"}},"type":"object","required":["workflow","inputs"],"title":"EventGithubActionsMetadata"},"EventLabel":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.label","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventLabelMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventLabel"},"EventLabelMetadata":{"properties":{"added":{"items":{"type":"string"},"type":"array","title":"Added"},"removed":{"items":{"type":"string"},"type":"array","title":"Removed"}},"type":"object","required":["added","removed"],"title":"EventLabelMetadata"},"EventMerge":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.merge","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventMergeMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventMerge"},"EventMergeMetadata":{"properties":{"branch":{"type":"string","title":"Branch"}},"type":"object","required":["branch"],"title":"EventMergeMetadata"},"EventNoMetadata":{"properties":{},"type":"object","title":"EventNoMetadata"},"EventOutcome":{"type":"string","enum":["success","failure","pending","neutral"]},"EventPostCheck":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.post_check","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventPostCheckMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventPostCheck"},"EventPostCheckMetadata":{"properties":{"conclusion":{"anyOf":[{"type":"string","enum":["success","failure","neutral","cancelled","skipped","timed_out","action_required","stale","startup_failure"]},{"type":"null"}],"title":"Conclusion"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"}},"type":"object","required":["conclusion","title","summary"],"title":"EventPostCheckMetadata"},"EventProductDisabled":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"product.disabled","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventProductDisabledMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventProductDisabled"},"EventProductDisabledMetadata":{"properties":{"product":{"type":"string","enum":["ci_insights","merge_protections","workflow_automation","merge_queue"],"title":"Product"},"disabled_by":{"$ref":"#/components/schemas/Actor"},"disabled_at":{"type":"string","format":"date-time","title":"Disabled At"},"disabled_by_staff":{"type":"boolean","title":"Disabled By Staff"}},"type":"object","required":["product","disabled_by","disabled_at","disabled_by_staff"],"title":"EventProductDisabledMetadata"},"EventProductEnabled":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"product.enabled","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventProductEnabledMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventProductEnabled"},"EventProductEnabledMetadata":{"properties":{"product":{"type":"string","enum":["ci_insights","merge_protections","workflow_automation","merge_queue"],"title":"Product"},"enabled_by":{"$ref":"#/components/schemas/Actor"},"enabled_at":{"type":"string","format":"date-time","title":"Enabled At"},"enabled_by_staff":{"type":"boolean","title":"Enabled By Staff"}},"type":"object","required":["product","enabled_by","enabled_at","enabled_by_staff"],"title":"EventProductEnabledMetadata"},"EventQueueBatchBisectionEnd":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.batch_bisection_end","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueBatchBisectionEndMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueBatchBisectionEnd"},"EventQueueBatchBisectionEndMetadata":{"properties":{"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"original_batch_pr_numbers":{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array","title":"Original Batch Pr Numbers"},"culprit_found":{"type":"boolean","title":"Culprit Found"},"culprit_pr_numbers":{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array","title":"Culprit Pr Numbers"},"confirmed_culprit_pr_numbers":{"anyOf":[{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array"},{"type":"null"}],"title":"Confirmed Culprit Pr Numbers"},"dropped_unverified_pr_numbers":{"anyOf":[{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array"},{"type":"null"}],"title":"Dropped Unverified Pr Numbers"},"remaining_pr_numbers":{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array","title":"Remaining Pr Numbers"},"max_failure_resolution_reached":{"type":"boolean","title":"Max Failure Resolution Reached"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id","description":"The batch this event concerns. Correlate the queue events for a batch (checks_start / checks_end / leave / bisection) on this id. Null on events persisted before this field was added."},"train_car_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deprecated alias of batch_id","description":"Deprecated: use `batch_id` instead (same value).","deprecated":true},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name","description":"The display name of the batch this event concerns, the same name the merge queue shows while the batch is queued. Recorded on the event because the name lives only in the live queue state and is unrecoverable once the batch leaves the queue. Null on events persisted before this field was added."}},"type":"object","required":["queue_name","priority_rule_name","original_batch_pr_numbers","culprit_found","culprit_pr_numbers","confirmed_culprit_pr_numbers","dropped_unverified_pr_numbers","remaining_pr_numbers","max_failure_resolution_reached","session_id","batch_id","train_car_id","batch_name"],"title":"EventQueueBatchBisectionEndMetadata"},"EventQueueBatchBisectionStart":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.batch_bisection_start","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueBatchBisectionStartMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueBatchBisectionStart"},"EventQueueBatchBisectionStartMetadata":{"properties":{"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"original_batch_pr_numbers":{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array","title":"Original Batch Pr Numbers"},"batch_size_before_split":{"type":"integer","title":"Batch Size Before Split"},"number_of_sub_batches":{"type":"integer","title":"Number Of Sub Batches"},"bisection_depth":{"type":"integer","title":"Bisection Depth"},"is_top_level":{"type":"boolean","title":"Is Top Level"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id","description":"The batch this event concerns. Correlate the queue events for a batch (checks_start / checks_end / leave / bisection) on this id. Null on events persisted before this field was added."},"train_car_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deprecated alias of batch_id","description":"Deprecated: use `batch_id` instead (same value).","deprecated":true},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name","description":"The display name of the batch this event concerns, the same name the merge queue shows while the batch is queued. Recorded on the event because the name lives only in the live queue state and is unrecoverable once the batch leaves the queue. Null on events persisted before this field was added."}},"type":"object","required":["queue_name","priority_rule_name","original_batch_pr_numbers","batch_size_before_split","number_of_sub_batches","bisection_depth","is_top_level","session_id","batch_id","train_car_id","batch_name"],"title":"EventQueueBatchBisectionStartMetadata"},"EventQueueChange":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.change","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueChangeMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueChange"},"EventQueueChangeMetadata":{"properties":{"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"size":{"type":"integer","title":"Size"}},"type":"object","required":["queue_name","priority_rule_name","size"],"title":"EventQueueChangeMetadata"},"EventQueueChecksChange":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.checks.change","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueChecksChangeMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueChecksChange"},"EventQueueChecksChangeMetadata":{"properties":{"queue_name":{"type":"string","title":"Queue Name"},"running_checks":{"type":"integer","title":"Running Checks"}},"type":"object","required":["queue_name","running_checks"],"title":"EventQueueChecksChangeMetadata"},"EventQueueChecksEnd":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.checks_end","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueChecksEndMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueChecksEnd"},"EventQueueChecksEndMetadata":{"properties":{"aborted":{"type":"boolean","title":"Aborted"},"abort_code":{"anyOf":[{"type":"string","enum":["PR_DEQUEUED","PR_DEQUEUED_FROM_PARTITION","PR_AHEAD_DEQUEUED","BATCH_AHEAD_FAILED","PR_WITH_HIGHER_PRIORITY_QUEUED","SCHEDULED_FREEZE_STATUS_CHANGED","SPECULATIVE_CHECK_NUMBER_REDUCED","CHECKS_TIMEOUT","CHECKS_FAILED","DROPPED_BY_BISECTION_ELIMINATION","QUEUE_RULE_MISSING","BASE_BRANCH_MISSING","BASE_BRANCH_CHANGED","PR_UNEXPECTEDLY_FAILED_TO_MERGE","BATCH_MAX_FAILURE_RESOLUTION_ATTEMPTS","PR_CHECKS_STOPPED_BECAUSE_MERGE_QUEUE_PAUSE","CONFLICT_WITH_BASE_BRANCH","CONFLICT_WITH_PULL_AHEAD","BRANCH_UPDATE_FAILED","DRAFT_PULL_REQUEST_CHANGED","BATCH_PULL_REQUEST_CLOSED","PULL_REQUEST_UPDATED","MERGE_QUEUE_RESET","INCOMPATIBILITY_WITH_BRANCH_PROTECTIONS","PR_MANUALLY_MERGED","DRAFT_PULL_REQUEST_CREATION_FAILED","DRAFT_PULL_REQUEST_CREATION_BRANCH_NOT_INDEXED","CONFIGURATION_CHANGED","UNPROCESSABLE_PULL_REQUEST","PR_MANUALLY_DEQUEUED","STACK_PREDECESSOR_DEQUEUED","INTERMEDIATE_RESULTS_SKIPPED","CHECKS_RETRIED","SCHEDULE_BLOCKED_AHEAD_YIELDED","BASE_REF_ALIGNMENT_TIMEOUT","GITHUB_STACKED_PULL_REQUEST_MERGE_UNSUPPORTED","BATCH_SCOPES_CHANGED","BATCH_AHEAD_BRANCH_EDITED","CHECKS_INTERRUPTED"]},{"type":"null"}],"title":"Abort Code"},"abort_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Abort Reason"},"abort_status":{"type":"string","enum":["DEFINITIVE","REEMBARKED"],"title":"Abort Status"},"branch":{"type":"string","title":"Branch"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"queue_name":{"type":"string","title":"Queue Name"},"queued_at":{"type":"string","format":"date-time","title":"Queued At"},"retry_attempt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Attempt"},"max_retries":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Retries"},"speculative_check_pull_request":{"$ref":"#/components/schemas/mergify_engine__signals__SpeculativeCheckPullRequest"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id","description":"The batch this event concerns. Correlate the queue events for a batch (checks_start / checks_end / leave / bisection) on this id. Null on events persisted before this field was added."},"train_car_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deprecated alias of batch_id","description":"Deprecated: use `batch_id` instead (same value).","deprecated":true},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name","description":"The display name of the batch this event concerns, the same name the merge queue shows while the batch is queued. Recorded on the event because the name lives only in the live queue state and is unrecoverable once the batch leaves the queue. Null on events persisted before this field was added."},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes","description":"The scopes of the batch checking this pull request. Batches with disjoint scopes run their checks concurrently, so the scope tells which parallel lane the batch occupies. Empty when the queue is not scoped. Null on events persisted before this field was added."},"parent_batch_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Parent Batch Ids","description":"The batch ids this batch descends from. A batch inherits its parents' check results, so this links a batch back to the ones checked before it. Empty on a first check with no predecessor. Null on events persisted before this field was added."},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"all_scopes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Scopes","description":"Whether the train car checking this pull request impacts every scope (a merge-queue barrier). Null on events persisted before this field existed."}},"type":"object","required":["aborted","abort_code","abort_reason","abort_status","branch","priority_rule_name","queue_name","queued_at","retry_attempt","max_retries","speculative_check_pull_request","batch_id","train_car_id","batch_name","scopes","parent_batch_ids","session_id"],"title":"EventQueueChecksEndMetadata"},"EventQueueChecksNotStarted":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.checks_not_started","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueChecksNotStartedMetadata"},"attempt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attempt","description":"1-based number of this draft-creation failure within the pull request's current queue stay (`metadata.session_id`): 1 on the first failure, incrementing on each automatic retry. Authoritative — it reflects every stored failure of the stay, independent of the requested time window or page, so a repeatedly-stuck pull request reads its true count. Null/absent on events that predate this field or when the count could not be derived."}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueChecksNotStarted"},"EventQueueChecksNotStartedMetadata":{"properties":{"branch":{"type":"string","title":"Branch"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"queue_name":{"type":"string","title":"Queue Name"},"queued_at":{"type":"string","format":"date-time","title":"Queued At"},"reason":{"type":"string","title":"Reason"},"session_id":{"type":"string","format":"uuid","title":"Session Id"}},"type":"object","required":["branch","priority_rule_name","queue_name","queued_at","reason","session_id"],"title":"EventQueueChecksNotStartedMetadata"},"EventQueueChecksStart":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.checks_start","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueChecksStartMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueChecksStart"},"EventQueueChecksStartMetadata":{"properties":{"branch":{"type":"string","title":"Branch"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"queue_name":{"type":"string","title":"Queue Name"},"queued_at":{"type":"string","format":"date-time","title":"Queued At"},"start_reason":{"type":"string","title":"Start Reason"},"speculative_check_pull_request":{"$ref":"#/components/schemas/mergify_engine__signals__SpeculativeCheckPullRequest"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id","description":"The batch this event concerns. Correlate the queue events for a batch (checks_start / checks_end / leave / bisection) on this id. Null on events persisted before this field was added."},"train_car_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deprecated alias of batch_id","description":"Deprecated: use `batch_id` instead (same value).","deprecated":true},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name","description":"The display name of the batch this event concerns, the same name the merge queue shows while the batch is queued. Recorded on the event because the name lives only in the live queue state and is unrecoverable once the batch leaves the queue. Null on events persisted before this field was added."},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes","description":"The scopes of the batch checking this pull request. Batches with disjoint scopes run their checks concurrently, so the scope tells which parallel lane the batch occupies. Empty when the queue is not scoped. Null on events persisted before this field was added."},"parent_batch_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Parent Batch Ids","description":"The batch ids this batch descends from. A batch inherits its parents' check results, so this links a batch back to the ones checked before it. Empty on a first check with no predecessor. Null on events persisted before this field was added."},"previous_batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Previous Batch Id","description":"The ID of the batch checked just before this one for the same pull request, when this check is a restart. Null on the first check."},"previous_batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Batch Name","description":"The display name of `previous_batch_id`'s batch, read back from that batch's own checks_end event. Null on the first check, and when the predecessor was checked before `batch_name` was recorded on events."},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"all_scopes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Scopes","description":"Whether the train car checking this pull request impacts every scope (a merge-queue barrier). Null on events persisted before this field existed."}},"type":"object","required":["branch","priority_rule_name","queue_name","queued_at","start_reason","speculative_check_pull_request","batch_id","train_car_id","batch_name","scopes","parent_batch_ids","previous_batch_id","previous_batch_name","session_id"],"title":"EventQueueChecksStartMetadata"},"EventQueueConflictDeferred":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.conflict_deferred","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueConflictDeferredMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueConflictDeferred"},"EventQueueConflictDeferredMetadata":{"properties":{"branch":{"type":"string","title":"Branch"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"queue_name":{"type":"string","title":"Queue Name"},"queued_at":{"type":"string","format":"date-time","title":"Queued At"},"reason":{"type":"string","title":"Reason"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"blocking_pull_request_numbers":{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array","title":"Blocking Pull Request Numbers","description":"The pull requests ahead in the queue that were in flight when the merge failed. The conflicting hunk belongs to at least one of them; the queue never learns which, so `reason` claims a conflict with the set rather than with a named pull request."}},"type":"object","required":["branch","priority_rule_name","queue_name","queued_at","reason","session_id","blocking_pull_request_numbers"],"title":"EventQueueConflictDeferredMetadata"},"EventQueueEnter":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.enter","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueEnterMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueEnter"},"EventQueueEnterMetadata":{"properties":{"queue_name":{"type":"string","title":"Queue Name"},"branch":{"type":"string","title":"Branch"},"queued_at":{"type":"string","format":"date-time","title":"Queued At"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"session_id":{"type":"string","format":"uuid","title":"Session Id"}},"type":"object","required":["queue_name","branch","queued_at","priority_rule_name","session_id"],"title":"EventQueueEnterMetadata"},"EventQueueLeave":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.leave","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueLeaveMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueLeave"},"EventQueueLeaveMetadata":{"properties":{"reason":{"type":"string","title":"Reason"},"merged":{"type":"boolean","title":"Merged"},"queue_name":{"type":"string","title":"Queue Name"},"branch":{"type":"string","title":"Branch"},"queued_at":{"type":"string","format":"date-time","title":"Queued At"},"seconds_waiting_for_schedule":{"type":"integer","title":"Seconds Waiting For Schedule"},"seconds_waiting_for_freeze":{"type":"integer","title":"Seconds Waiting For Freeze"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"conditions_evaluation":{"anyOf":[{"$ref":"#/components/schemas/mergify_engine__rules__conditions__QueueConditionEvaluationResult__Serialized"},{"type":"null"}]},"checks":{"items":{"$ref":"#/components/schemas/mergify_engine__queue__merge_queue__checks__QueueCheck__Serialized"},"type":"array","title":"Checks"},"unsuccessful_checks":{"items":{"$ref":"#/components/schemas/mergify_engine__queue__merge_queue__checks__QueueCheck__Serialized"},"type":"array","title":"Unsuccessful Checks"},"pull_request_head_sha":{"type":"string","title":"Pull Request Head Sha"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"dequeue_code":{"anyOf":[{"type":"string","enum":["PR_MERGED","PR_MERGED_INTERMEDIATE_RESULTS_SKIPPED"]},{"type":"string","enum":["PR_DEQUEUED","PR_DEQUEUED_FROM_PARTITION","PR_AHEAD_DEQUEUED","BATCH_AHEAD_FAILED","PR_WITH_HIGHER_PRIORITY_QUEUED","SCHEDULED_FREEZE_STATUS_CHANGED","SPECULATIVE_CHECK_NUMBER_REDUCED","CHECKS_TIMEOUT","CHECKS_FAILED","DROPPED_BY_BISECTION_ELIMINATION","QUEUE_RULE_MISSING","BASE_BRANCH_MISSING","BASE_BRANCH_CHANGED","PR_UNEXPECTEDLY_FAILED_TO_MERGE","BATCH_MAX_FAILURE_RESOLUTION_ATTEMPTS","PR_CHECKS_STOPPED_BECAUSE_MERGE_QUEUE_PAUSE","CONFLICT_WITH_BASE_BRANCH","CONFLICT_WITH_PULL_AHEAD","BRANCH_UPDATE_FAILED","DRAFT_PULL_REQUEST_CHANGED","BATCH_PULL_REQUEST_CLOSED","PULL_REQUEST_UPDATED","MERGE_QUEUE_RESET","INCOMPATIBILITY_WITH_BRANCH_PROTECTIONS","PR_MANUALLY_MERGED","DRAFT_PULL_REQUEST_CREATION_FAILED","DRAFT_PULL_REQUEST_CREATION_BRANCH_NOT_INDEXED","CONFIGURATION_CHANGED","UNPROCESSABLE_PULL_REQUEST","PR_MANUALLY_DEQUEUED","STACK_PREDECESSOR_DEQUEUED","INTERMEDIATE_RESULTS_SKIPPED","CHECKS_RETRIED","SCHEDULE_BLOCKED_AHEAD_YIELDED","BASE_REF_ALIGNMENT_TIMEOUT","GITHUB_STACKED_PULL_REQUEST_MERGE_UNSUPPORTED","BATCH_SCOPES_CHANGED","BATCH_AHEAD_BRANCH_EDITED","CHECKS_INTERRUPTED"]},{"type":"null"}],"title":"Dequeue Code"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id","description":"The batch the pull request was in when it left the queue. Use it to correlate this leave with the batch's checks_start / checks_end events. Null when the pull request left before being embarked in a batch, or on events persisted before this field was added."},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes","description":"The scopes of the batch the pull request was in when it left. Empty when the queue is not scoped. Null when the pull request left before being embarked in a batch, or on events persisted before this field was added."},"all_scopes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Scopes","description":"Whether the train car the pull request was in impacted every scope (a merge-queue barrier). Null when the pull request left before being embarked in a car, or on events persisted before this field was added."}},"type":"object","required":["reason","merged","queue_name","branch","queued_at","seconds_waiting_for_schedule","seconds_waiting_for_freeze","priority_rule_name","conditions_evaluation","checks","unsuccessful_checks","pull_request_head_sha","session_id","dequeue_code","batch_id","scopes","all_scopes"],"title":"EventQueueLeaveMetadata"},"EventQueueMerged":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.queue.merged","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueueMergedMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueueMerged"},"EventQueueMergedMetadata":{"properties":{"branch":{"type":"string","title":"Branch"},"queue_name":{"type":"string","title":"Queue Name"},"queued_at":{"type":"string","format":"date-time","title":"Queued At"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"merge_commit_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merge Commit Sha","description":"The commit this queue merge landed on the base branch (its new tip): a merge/squash commit, or the fast-forwarded head SHA for fast-forward merges. Null on events persisted before this field was added."}},"type":"object","required":["branch","queue_name","queued_at","priority_rule_name","session_id","merge_commit_sha"],"title":"EventQueueMergedMetadata"},"EventQueuePauseCreate":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"queue.pause.create","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueuePauseCreateMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueuePauseCreate"},"EventQueuePauseCreateMetadata":{"properties":{"reason":{"type":"string","title":"Reason"},"created_by":{"$ref":"#/components/schemas/Actor"},"created_by_staff":{"type":"boolean","title":"Created By Staff"}},"type":"object","required":["reason","created_by","created_by_staff"],"title":"EventQueuePauseCreateMetadata"},"EventQueuePauseDelete":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"queue.pause.delete","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueuePauseDeleteMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueuePauseDelete"},"EventQueuePauseDeleteMetadata":{"properties":{"deleted_by":{"$ref":"#/components/schemas/Actor"},"deleted_by_staff":{"type":"boolean","title":"Deleted By Staff"}},"type":"object","required":["deleted_by","deleted_by_staff"],"title":"EventQueuePauseDeleteMetadata"},"EventQueuePauseUpdate":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"queue.pause.update","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventQueuePauseUpdateMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventQueuePauseUpdate"},"EventQueuePauseUpdateMetadata":{"properties":{"reason":{"type":"string","title":"Reason"},"updated_by":{"$ref":"#/components/schemas/Actor"},"updated_by_staff":{"type":"boolean","title":"Updated By Staff"}},"type":"object","required":["reason","updated_by","updated_by_staff"],"title":"EventQueuePauseUpdateMetadata"},"EventRebase":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"metadata":{"$ref":"#/components/schemas/EventNoMetadata"},"type":{"type":"string","const":"action.rebase","title":"Type"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","metadata","type"],"title":"EventRebase"},"EventRefresh":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"metadata":{"$ref":"#/components/schemas/EventNoMetadata"},"type":{"type":"string","const":"action.refresh","title":"Type"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","metadata","type"],"title":"EventRefresh"},"EventRequestReviews":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.request_reviews","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventRequestReviewsMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventRequestReviews"},"EventRequestReviewsMetadata":{"properties":{"reviewers":{"items":{"type":"string"},"type":"array","title":"Reviewers"},"team_reviewers":{"items":{"type":"string"},"type":"array","title":"Team Reviewers"}},"type":"object","required":["reviewers","team_reviewers"],"title":"EventRequestReviewsMetadata"},"EventReview":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"action.review","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventReviewMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventReview"},"EventReviewMetadata":{"properties":{"review_type":{"type":"string","enum":["APPROVE","REQUEST_CHANGES","COMMENT"],"title":"Review Type"},"reviewer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["review_type","reviewer","message"],"title":"EventReviewMetadata"},"EventScheduledFreezeCreate":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"scheduled_freeze.create","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventScheduledFreezeCreateMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventScheduledFreezeCreate"},"EventScheduledFreezeCreateMetadata":{"properties":{"scheduled_freeze_attributes":{"$ref":"#/components/schemas/ScheduledFreezeEventLogAttributes"},"created_by":{"$ref":"#/components/schemas/Actor"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_staff":{"type":"boolean","title":"Created By Staff"}},"type":"object","required":["scheduled_freeze_attributes","created_by","created_at","created_by_staff"],"title":"EventScheduledFreezeCreateMetadata"},"EventScheduledFreezeDelete":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"scheduled_freeze.delete","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventScheduledFreezeDeleteMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventScheduledFreezeDelete"},"EventScheduledFreezeDeleteMetadata":{"properties":{"scheduled_freeze_attributes":{"$ref":"#/components/schemas/ScheduledFreezeEventLogAttributes"},"reason":{"type":"string","title":"Reason"},"deleted_by":{"$ref":"#/components/schemas/Actor"},"deleted_at":{"type":"string","format":"date-time","title":"Deleted At"},"deleted_by_staff":{"type":"boolean","title":"Deleted By Staff"}},"type":"object","required":["scheduled_freeze_attributes","reason","deleted_by","deleted_at","deleted_by_staff"],"title":"EventScheduledFreezeDeleteMetadata"},"EventScheduledFreezeUpdate":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"scheduled_freeze.update","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventScheduledFreezeUpdateMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventScheduledFreezeUpdate"},"EventScheduledFreezeUpdateMetadata":{"properties":{"scheduled_freeze_attributes_before":{"$ref":"#/components/schemas/ScheduledFreezeEventLogAttributes"},"scheduled_freeze_attributes_after":{"$ref":"#/components/schemas/ScheduledFreezeEventLogAttributes"},"updated_by":{"$ref":"#/components/schemas/Actor"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_staff":{"type":"boolean","title":"Updated By Staff"}},"type":"object","required":["scheduled_freeze_attributes_before","scheduled_freeze_attributes_after","updated_by","updated_at","updated_by_staff"],"title":"EventScheduledFreezeUpdateMetadata"},"EventSquash":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"metadata":{"$ref":"#/components/schemas/EventNoMetadata"},"type":{"type":"string","const":"action.squash","title":"Type"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","metadata","type"],"title":"EventSquash"},"EventTestDequarantined":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"test.dequarantined","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventTestDequarantinedMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventTestDequarantined"},"EventTestDequarantinedMetadata":{"properties":{"quarantine_id":{"type":"string","format":"uuid","title":"Quarantine Id"},"test_id":{"type":"string","format":"uuid","title":"Test Id"},"test_name":{"type":"string","title":"Test Name"},"source":{"$ref":"#/components/schemas/QuarantineSource"},"original_quarantine":{"$ref":"#/components/schemas/TestQuarantineSnapshot"},"health_status_at_event":{"$ref":"#/components/schemas/HealthStatus"},"dequarantined_at":{"type":"string","format":"date-time","title":"Dequarantined At"},"dequarantined_by":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}]},"dequarantined_by_staff":{"type":"boolean","title":"Dequarantined By Staff"}},"type":"object","required":["quarantine_id","test_name","source","original_quarantine","health_status_at_event","dequarantined_at","dequarantined_by","dequarantined_by_staff"],"title":"EventTestDequarantinedMetadata"},"EventTestQuarantined":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"type":{"type":"string","const":"test.quarantined","title":"Type"},"metadata":{"$ref":"#/components/schemas/EventTestQuarantinedMetadata"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","type","metadata"],"title":"EventTestQuarantined"},"EventTestQuarantinedMetadata":{"properties":{"quarantine_id":{"type":"string","format":"uuid","title":"Quarantine Id"},"test_id":{"type":"string","format":"uuid","title":"Test Id"},"test_name":{"type":"string","title":"Test Name"},"source":{"$ref":"#/components/schemas/QuarantineSource"},"reason":{"type":"string","title":"Reason"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"quarantined_at":{"type":"string","format":"date-time","title":"Quarantined At"},"health_status_at_event":{"$ref":"#/components/schemas/HealthStatus"},"quarantined_by":{"anyOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}]},"quarantined_by_staff":{"type":"boolean","title":"Quarantined By Staff"}},"type":"object","required":["quarantine_id","test_name","source","reason","branch","quarantined_at","health_status_at_event","quarantined_by","quarantined_by_staff"],"title":"EventTestQuarantinedMetadata"},"EventType":{"type":"string","enum":["action.assign","action.backport","action.close","action.comment","action.copy","action.delete_head_branch","action.dequeue","action.dismiss_reviews","action.edit","action.github_actions","action.label","action.merge","action.post_check","action.queue.batch_bisection_end","action.queue.batch_bisection_start","action.queue.change","action.queue.checks.change","action.queue.checks_end","action.queue.checks_not_started","action.queue.checks_start","action.queue.conflict_deferred","action.queue.enter","action.queue.leave","action.queue.merged","action.rebase","action.refresh","action.request_reviews","action.review","action.squash","action.update","ci_insights.auto_quarantine.disabled","ci_insights.auto_quarantine.enabled","ci_insights.auto_quarantine.modified","ci_insights.job_retried","command.dequeue","command.queue","product.disabled","product.enabled","queue.pause.create","queue.pause.delete","queue.pause.update","scheduled_freeze.create","scheduled_freeze.delete","scheduled_freeze.update","test.dequarantined","test.quarantined"]},"EventUpdate":{"properties":{"id":{"type":"integer","title":"Id"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"trigger":{"type":"string","title":"Trigger"},"repository":{"type":"string","title":"Repository"},"pull_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pull Request"},"base_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Ref"},"outcome":{"$ref":"#/components/schemas/EventOutcome"},"metadata":{"$ref":"#/components/schemas/EventNoMetadata"},"type":{"type":"string","const":"action.update","title":"Type"}},"type":"object","required":["id","received_at","trigger","repository","pull_request","base_ref","outcome","metadata","type"],"title":"EventUpdate"},"EventsResponse":{"properties":{"size":{"type":"integer","title":"Size","description":"The number of items in this page"},"per_page":{"type":"integer","title":"Per Page","description":"The number of items per page"},"events":{"items":{"oneOf":[{"$ref":"#/components/schemas/EventAssign"},{"$ref":"#/components/schemas/EventBackport"},{"$ref":"#/components/schemas/EventClose"},{"$ref":"#/components/schemas/EventComment"},{"$ref":"#/components/schemas/EventCopy"},{"$ref":"#/components/schemas/EventDeleteHeadBranch"},{"$ref":"#/components/schemas/EventDismissReviews"},{"$ref":"#/components/schemas/EventEdit"},{"$ref":"#/components/schemas/EventLabel"},{"$ref":"#/components/schemas/EventMerge"},{"$ref":"#/components/schemas/EventPostCheck"},{"$ref":"#/components/schemas/EventGithubActions"},{"$ref":"#/components/schemas/EventQueueEnter"},{"$ref":"#/components/schemas/EventQueueLeave"},{"$ref":"#/components/schemas/EventQueueChecksStart"},{"$ref":"#/components/schemas/EventQueueChecksEnd"},{"$ref":"#/components/schemas/EventQueueChecksNotStarted"},{"$ref":"#/components/schemas/EventQueueConflictDeferred"},{"$ref":"#/components/schemas/EventQueueBatchBisectionStart"},{"$ref":"#/components/schemas/EventQueueBatchBisectionEnd"},{"$ref":"#/components/schemas/EventQueueMerged"},{"$ref":"#/components/schemas/EventRebase"},{"$ref":"#/components/schemas/EventRefresh"},{"$ref":"#/components/schemas/EventRequestReviews"},{"$ref":"#/components/schemas/EventReview"},{"$ref":"#/components/schemas/EventSquash"},{"$ref":"#/components/schemas/EventDequeue"},{"$ref":"#/components/schemas/EventUpdate"},{"$ref":"#/components/schemas/EventQueuePauseCreate"},{"$ref":"#/components/schemas/EventQueuePauseUpdate"},{"$ref":"#/components/schemas/EventQueuePauseDelete"},{"$ref":"#/components/schemas/EventQueueChange"},{"$ref":"#/components/schemas/EventQueueChecksChange"},{"$ref":"#/components/schemas/EventScheduledFreezeCreate"},{"$ref":"#/components/schemas/EventScheduledFreezeUpdate"},{"$ref":"#/components/schemas/EventScheduledFreezeDelete"},{"$ref":"#/components/schemas/EventCiInsightsJobRetried"},{"$ref":"#/components/schemas/EventCiInsightsAutoQuarantineEnabled"},{"$ref":"#/components/schemas/EventCiInsightsAutoQuarantineDisabled"},{"$ref":"#/components/schemas/EventCiInsightsAutoQuarantineModified"},{"$ref":"#/components/schemas/EventCommandQueue"},{"$ref":"#/components/schemas/EventCommandDequeue"},{"$ref":"#/components/schemas/EventProductEnabled"},{"$ref":"#/components/schemas/EventProductDisabled"},{"$ref":"#/components/schemas/EventTestQuarantined"},{"$ref":"#/components/schemas/EventTestDequarantined"}],"discriminator":{"propertyName":"type","mapping":{"action.assign":"#/components/schemas/EventAssign","action.backport":"#/components/schemas/EventBackport","action.close":"#/components/schemas/EventClose","action.comment":"#/components/schemas/EventComment","action.copy":"#/components/schemas/EventCopy","action.delete_head_branch":"#/components/schemas/EventDeleteHeadBranch","action.dequeue":"#/components/schemas/EventDequeue","action.dismiss_reviews":"#/components/schemas/EventDismissReviews","action.edit":"#/components/schemas/EventEdit","action.github_actions":"#/components/schemas/EventGithubActions","action.label":"#/components/schemas/EventLabel","action.merge":"#/components/schemas/EventMerge","action.post_check":"#/components/schemas/EventPostCheck","action.queue.batch_bisection_end":"#/components/schemas/EventQueueBatchBisectionEnd","action.queue.batch_bisection_start":"#/components/schemas/EventQueueBatchBisectionStart","action.queue.change":"#/components/schemas/EventQueueChange","action.queue.checks.change":"#/components/schemas/EventQueueChecksChange","action.queue.checks_end":"#/components/schemas/EventQueueChecksEnd","action.queue.checks_not_started":"#/components/schemas/EventQueueChecksNotStarted","action.queue.checks_start":"#/components/schemas/EventQueueChecksStart","action.queue.conflict_deferred":"#/components/schemas/EventQueueConflictDeferred","action.queue.enter":"#/components/schemas/EventQueueEnter","action.queue.leave":"#/components/schemas/EventQueueLeave","action.queue.merged":"#/components/schemas/EventQueueMerged","action.rebase":"#/components/schemas/EventRebase","action.refresh":"#/components/schemas/EventRefresh","action.request_reviews":"#/components/schemas/EventRequestReviews","action.review":"#/components/schemas/EventReview","action.squash":"#/components/schemas/EventSquash","action.update":"#/components/schemas/EventUpdate","ci_insights.auto_quarantine.disabled":"#/components/schemas/EventCiInsightsAutoQuarantineDisabled","ci_insights.auto_quarantine.enabled":"#/components/schemas/EventCiInsightsAutoQuarantineEnabled","ci_insights.auto_quarantine.modified":"#/components/schemas/EventCiInsightsAutoQuarantineModified","ci_insights.job_retried":"#/components/schemas/EventCiInsightsJobRetried","command.dequeue":"#/components/schemas/EventCommandDequeue","command.queue":"#/components/schemas/EventCommandQueue","product.disabled":"#/components/schemas/EventProductDisabled","product.enabled":"#/components/schemas/EventProductEnabled","queue.pause.create":"#/components/schemas/EventQueuePauseCreate","queue.pause.delete":"#/components/schemas/EventQueuePauseDelete","queue.pause.update":"#/components/schemas/EventQueuePauseUpdate","scheduled_freeze.create":"#/components/schemas/EventScheduledFreezeCreate","scheduled_freeze.delete":"#/components/schemas/EventScheduledFreezeDelete","scheduled_freeze.update":"#/components/schemas/EventScheduledFreezeUpdate","test.dequarantined":"#/components/schemas/EventTestDequarantined","test.quarantined":"#/components/schemas/EventTestQuarantined"}}},"type":"array","title":"Events","metadata":{"description":"The list of events"}}},"type":"object","required":["size","per_page","events"],"title":"EventsResponse"},"FacetCount":{"properties":{"value":{"type":"string","title":"Value"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["value","count"],"title":"FacetCount","description":"One row of a per-facet count list. `value` is the raw column\nvalue coerced to a string so JSON serialisation stays uniform —\ntoday only event types use this, but the shape is reusable if we\nadd a bounded-cardinality facet later."},"FailureRateGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/FailureRateInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"FailureRateGroupResponse"},"FailureRateInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"total":{"type":"integer","title":"Total"},"failures":{"type":"integer","title":"Failures"},"failure_rate":{"type":"number","title":"Failure Rate"}},"type":"object","required":["start","end","total","failures","failure_rate"],"title":"FailureRateInInterval"},"FailureRateResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/FailureRateGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"FailureRateResponse"},"GetScheduledFreezesResponse":{"properties":{"scheduled_freezes":{"items":{"$ref":"#/components/schemas/ScheduledFreezeObjectResponse"},"type":"array","title":"Scheduled Freezes"}},"type":"object","required":["scheduled_freezes"],"title":"GetScheduledFreezesResponse"},"GetTestDetailsResponse":{"properties":{"repository":{"type":"string","title":"Repository"},"test_name":{"type":"string","title":"Test Name"},"test_id":{"type":"string","format":"uuid5","title":"Test Id"},"health_status":{"type":"string","title":"Health Status"},"last_conclusion":{"type":"string","title":"Last Conclusion"},"failure_ratio":{"type":"number","title":"Failure Ratio"},"flakiness_ratio":{"type":"number","title":"Flakiness Ratio"},"success_ratio":{"type":"number","title":"Success Ratio"},"flaky_detection_enabled":{"type":"boolean","title":"Flaky Detection Enabled"},"first_failure_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Failure At"},"first_failure_commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Failure Commit"},"first_failure_pull":{"anyOf":[{"$ref":"#/components/schemas/GetTestDetailsResponsePull"},{"type":"null"}]},"last_failure_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Failure At"},"last_success_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Success At"},"test_framework":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Framework"},"test_framework_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Framework Version"},"test_programming_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Programming Language"},"test_filepath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Filepath"},"test_function_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Function Name"}},"type":"object","required":["repository","test_name","test_id","health_status","last_conclusion","failure_ratio","flakiness_ratio","success_ratio","flaky_detection_enabled","first_failure_at","first_failure_commit","first_failure_pull","last_failure_at","last_success_at","test_framework","test_framework_version","test_programming_language","test_filepath","test_function_name"],"title":"GetTestDetailsResponse"},"GetTestDetailsResponsePull":{"properties":{"id":{"type":"integer","title":"Id"},"number":{"type":"integer","title":"Number"},"title":{"type":"string","title":"Title"},"user":{"$ref":"#/components/schemas/GetTestDetailsResponseUser"}},"type":"object","required":["id","number","title","user"],"title":"GetTestDetailsResponsePull"},"GetTestDetailsResponseUser":{"properties":{"id":{"type":"integer","title":"Id"},"login":{"type":"string","title":"Login"}},"type":"object","required":["id","login"],"title":"GetTestDetailsResponseUser"},"GetTestFailureResponse":{"properties":{"id":{"type":"string","format":"uuid5","title":"Id"},"exception_type":{"type":"string","title":"Exception Type"},"exception_message":{"type":"string","title":"Exception Message"},"failure_count":{"type":"integer","title":"Failure Count"},"first_failure_at":{"type":"string","format":"date-time","title":"First Failure At"},"last_failure_at":{"type":"string","format":"date-time","title":"Last Failure At"},"latest_events":{"items":{"$ref":"#/components/schemas/TestFailureEvent"},"type":"array","title":"Latest Events"}},"type":"object","required":["id","exception_type","exception_message","failure_count","first_failure_at","last_failure_at","latest_events"],"title":"GetTestFailureResponse"},"GetTestFailuresResponse":{"properties":{"failures":{"items":{"$ref":"#/components/schemas/TestFailure"},"type":"array","title":"Failures"}},"type":"object","required":["failures"],"title":"GetTestFailuresResponse"},"GetTestHealthTransitionsResponse":{"properties":{"transitions":{"items":{"$ref":"#/components/schemas/HealthTransition"},"type":"array","title":"Transitions","description":"Health changes over the window, oldest first. Consecutive entries always differ; the first entry is the earliest classification observed in the window. Health is classified per time bucket (binning adapts to the window: 1h, 4h, 1d, 2d), so timestamps land on bucket boundaries, not individual runs."},"first_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Activity At","description":"Start of the earliest bucket with any executions in the window, or null when the test had no activity. A consumer can treat a `first_activity_at` well after the window start as the test's genuine origin, and one at the window edge as history that predates the retained window."}},"type":"object","required":["transitions","first_activity_at"],"title":"GetTestHealthTransitionsResponse"},"GetTestStatResponse":{"properties":{"stat":{"type":"string","enum":["total_tests","healthy_tests","broken_tests","flaky_tests","failed_executions"],"title":"Stat"},"value":{"type":"integer","title":"Value"},"value_over_time":{"items":{"$ref":"#/components/schemas/TestStatBucket"},"type":"array","title":"Value Over Time"}},"type":"object","required":["stat","value","value_over_time"],"title":"GetTestStatResponse"},"GitHubAccount":{"properties":{"login":{"type":"string","title":"Login"},"id":{"type":"integer","title":"Id"},"type":{"anyOf":[{"type":"string","enum":["User","Organization","Bot","Mannequin","Enterprise"]},{"type":"null"}],"title":"Type"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["login","id","type"],"title":"GitHubAccount"},"HealthConfidence":{"type":"string","enum":["low","medium","high"]},"HealthStatus":{"type":"string","enum":["healthy","flaky","broken"]},"HealthTransition":{"properties":{"at":{"type":"string","format":"date-time","title":"At","description":"Bucket boundary at which the test's health changed to `health_status`."},"health_status":{"$ref":"#/components/schemas/HealthStatus","description":"Health the test held from `at` until the next transition."},"exception_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exception Type","description":"Exception raised by the first failing run of the episode this transition opens. Always null for a recovery, when no failing run is retained, and on a first point that reports a test already unhealthy when the window opened: that episode began before the window, so its opening run is not among the runs the window covers."},"pull_request":{"anyOf":[{"$ref":"#/components/schemas/GetTestDetailsResponsePull"},{"type":"null"}],"description":"Pull request whose merge commit introduced the first failing run of the episode this transition opens. Null in three cases: on a recovery, because a test can stop failing without a PR fixing it and no 'fixed by' is attributed; when the failing commit cannot be traced back to a merged pull request; and on a first point whose episode began before the window."}},"type":"object","required":["at","health_status"],"title":"HealthTransition"},"HistogramBucket":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["start","end","count"],"title":"HistogramBucket","description":"One zero-fillable time bucket in the volume histogram. `start` and\n`end` are inclusive/exclusive boundaries aligned to the same EPOCH\nanchor PostgreSQL `date_bin` uses, so successive buckets tile the\nfull range without gaps or overlaps."},"IdleTimeGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/IdleTimeInInterval"},"type":"array","title":"Stats"},"summary":{"$ref":"#/components/schemas/IdleTimeSummary"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats","summary"],"title":"IdleTimeGroupResponse"},"IdleTimeInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"idle_capacity":{"type":"number","title":"Idle Capacity"},"idle_schedule":{"type":"number","title":"Idle Schedule"},"idle_freeze":{"type":"number","title":"Idle Freeze"},"ci_runtime":{"type":"number","title":"Ci Runtime"},"p95_idle_capacity":{"type":"number","title":"P95 Idle Capacity"},"p95_idle_schedule":{"type":"number","title":"P95 Idle Schedule"},"p95_idle_freeze":{"type":"number","title":"P95 Idle Freeze"},"p95_ci_runtime":{"type":"number","title":"P95 Ci Runtime"},"max_idle_capacity":{"type":"number","title":"Max Idle Capacity"},"max_idle_schedule":{"type":"number","title":"Max Idle Schedule"},"max_idle_freeze":{"type":"number","title":"Max Idle Freeze"},"max_ci_runtime":{"type":"number","title":"Max Ci Runtime"},"sum_idle_capacity":{"type":"number","title":"Sum Idle Capacity"},"sum_idle_schedule":{"type":"number","title":"Sum Idle Schedule"},"sum_idle_freeze":{"type":"number","title":"Sum Idle Freeze"},"sum_ci_runtime":{"type":"number","title":"Sum Ci Runtime"},"count_idle":{"type":"integer","title":"Count Idle"}},"type":"object","required":["start","end","idle_capacity","idle_schedule","idle_freeze","ci_runtime","p95_idle_capacity","p95_idle_schedule","p95_idle_freeze","p95_ci_runtime","max_idle_capacity","max_idle_schedule","max_idle_freeze","max_ci_runtime","sum_idle_capacity","sum_idle_schedule","sum_idle_freeze","sum_ci_runtime","count_idle"],"title":"IdleTimeInInterval"},"IdleTimeSummary":{"properties":{"avg_idle_capacity":{"type":"number","title":"Avg Idle Capacity"},"avg_idle_schedule":{"type":"number","title":"Avg Idle Schedule"},"avg_idle_freeze":{"type":"number","title":"Avg Idle Freeze"},"avg_ci_runtime":{"type":"number","title":"Avg Ci Runtime"},"p95_idle_capacity":{"type":"number","title":"P95 Idle Capacity"},"p95_idle_schedule":{"type":"number","title":"P95 Idle Schedule"},"p95_idle_freeze":{"type":"number","title":"P95 Idle Freeze"},"p95_ci_runtime":{"type":"number","title":"P95 Ci Runtime"},"max_idle_capacity":{"type":"number","title":"Max Idle Capacity"},"max_idle_schedule":{"type":"number","title":"Max Idle Schedule"},"max_idle_freeze":{"type":"number","title":"Max Idle Freeze"},"max_ci_runtime":{"type":"number","title":"Max Ci Runtime"}},"type":"object","required":["avg_idle_capacity","avg_idle_schedule","avg_idle_freeze","avg_ci_runtime","p95_idle_capacity","p95_idle_schedule","p95_idle_freeze","p95_ci_runtime","max_idle_capacity","max_idle_schedule","max_idle_freeze","max_ci_runtime"],"title":"IdleTimeSummary"},"ListTestExecutionsResponse":{"properties":{"size":{"type":"integer","title":"Size","description":"The number of items in this page"},"per_page":{"type":"integer","title":"Per Page","description":"The number of items per page"},"executions":{"items":{"$ref":"#/components/schemas/TestExecutionResult"},"type":"array","title":"Executions","description":"Test identities under which this test ran on the default branch over the requested time window, ordered by total executions."}},"type":"object","required":["size","per_page","executions"],"title":"ListTestExecutionsResponse"},"LogPatternAnnotationConditionMatchSerialized":{"properties":{"attribute":{"type":"string","title":"Attribute"},"matched_value":{"type":"string","title":"Matched Value"},"source":{"type":"string","const":"annotation","title":"Source"},"annotation_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Annotation Title"},"annotation_path":{"type":"string","title":"Annotation Path"}},"type":"object","required":["attribute","matched_value","source","annotation_title","annotation_path"],"title":"LogPatternAnnotationConditionMatchSerialized"},"LogPatternJobLogConditionMatchSerialized":{"properties":{"attribute":{"type":"string","title":"Attribute"},"matched_value":{"type":"string","title":"Matched Value"},"source":{"type":"string","const":"job_log","title":"Source"},"matched_line_number":{"type":"integer","title":"Matched Line Number"}},"type":"object","required":["attribute","matched_value","source","matched_line_number"],"title":"LogPatternJobLogConditionMatchSerialized"},"MatchingConditionsDict-Input":{"properties":{"and":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Input"},{"type":"string"}]},"type":"array","title":"And"},"or":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Input"},{"type":"string"}]},"type":"array","title":"Or"},"not":{"$ref":"#/components/schemas/MatchingConditionsDict-Input"}},"type":"object","title":"MatchingConditionsDict"},"MatchingConditionsDict-Output":{"properties":{"and":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Output"},{"type":"string"}]},"type":"array","title":"And"},"or":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Output"},{"type":"string"}]},"type":"array","title":"Or"},"not":{"$ref":"#/components/schemas/MatchingConditionsDict-Output"}},"type":"object","title":"MatchingConditionsDict"},"MergeQueueBranches":{"properties":{"branches":{"items":{"type":"string"},"type":"array","title":"Branches","description":"List of branches with active merge queues"}},"type":"object","required":["branches"],"title":"MergeQueueBranches"},"MergeQueueDequeueImpact":{"properties":{"interrupted_batches":{"type":"integer","title":"Interrupted Batches","description":"Number of in-progress batches whose checks would be interrupted and restarted if this pull request is dequeued"},"rechecked_pull_requests":{"type":"integer","title":"Rechecked Pull Requests","description":"Number of other pull requests from the interrupted batches that would be re-embarked and rechecked"},"cascaded_pull_requests":{"type":"integer","title":"Cascaded Pull Requests","description":"Number of queued pull requests stacked on top of this one that would also be dequeued (excludes the dequeued pull request itself)"}},"type":"object","required":["interrupted_batches","rechecked_pull_requests","cascaded_pull_requests"],"title":"MergeQueueDequeueImpact"},"MergeQueueMergeabilityCheck":{"properties":{"check_type":{"type":"string","enum":["in_place","draft_pr","trusted"],"title":"Check Type","description":"The type of queue check: `in_place` (checks run on the pull request itself), `draft_pr` (checks run on a Mergify draft pull request), or `trusted` (no fresh queue check ran; the pull request was merged trusting its own green CI because the base commits it was missing did not affect its scopes)."},"queue_pull_request_number":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Queue Pull Request Number","description":"The number of the pull request used by the speculative check"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"The timestamp when the checks started for this pull request"},"ci_ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ci Ended At","description":"The timestamp when the CI ended for this pull request"},"ci_state":{"type":"string","enum":["pending","success","failed"],"title":"Ci State","description":"The combined state of the CI checks"},"state":{"type":"string","title":"State","description":"The overall queue check conclusion"},"checks":{"items":{"$ref":"#/components/schemas/QueueCheck"},"type":"array","title":"Checks","description":"The list of pull request checks"},"conditions_evaluation":{"anyOf":[{"$ref":"#/components/schemas/QueueConditionEvaluationJsonSerialized"},{"type":"null"}],"description":"The queue rule conditions evaluation"}},"type":"object","required":["check_type","queue_pull_request_number","started_at","ci_ended_at","ci_state","state","checks","conditions_evaluation"],"title":"MergeQueueMergeabilityCheck"},"MergeQueuePausePayload":{"properties":{"reason":{"type":"string","maxLength":255,"title":"Reason","description":"The reason of the merge queue pause"}},"type":"object","required":["reason"],"title":"MergeQueuePausePayload"},"MergeQueuePauseResponse":{"properties":{"paused":{"type":"boolean","title":"Paused","description":"Whether the merge queue is currently paused"},"reason":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Reason","description":"The reason of the merge queue pause"},"paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused At","description":"The date and time when the merge queue was paused"}},"type":"object","required":["paused"],"title":"MergeQueuePauseResponse"},"MergeQueuePullRequest":{"properties":{"number":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Number","description":"The number of the pull request"},"queued_at":{"type":"string","format":"date-time","title":"Queued At","description":"The timestamp when the pull request entered the queue"},"estimated_time_of_merge":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Time Of Merge","description":"The estimated timestamp when this pull request will be merged"},"position":{"type":"integer","title":"Position","description":"The position of the pull request in the queue (0-indexed)"},"priority_rule_name":{"type":"string","title":"Priority Rule Name","description":"The name of the priority rule applied to this pull request"},"queue_rule_name":{"type":"string","title":"Queue Rule Name","description":"The name of the queue rule"},"checks_timeout_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checks Timeout At","description":"The timestamp when the checks will timeout for this pull request"},"queue_rule":{"$ref":"#/components/schemas/QueueRule","description":"The queue rule associated to this pull request"},"mergeability_check":{"anyOf":[{"$ref":"#/components/schemas/MergeQueueMergeabilityCheck"},{"type":"null"}],"description":"The current state of the mergeability check"}},"type":"object","required":["number","queued_at","estimated_time_of_merge","position","priority_rule_name","queue_rule_name","checks_timeout_at","queue_rule","mergeability_check"],"title":"MergeQueuePullRequest"},"MergeQueueStatus":{"properties":{"batches":{"items":{"$ref":"#/components/schemas/MergeQueueStatusBatchWithSubBatch"},"type":"array","title":"Batches"},"waiting_pull_requests":{"items":{"$ref":"#/components/schemas/MergeQueueStatusPullRequest"},"type":"array","title":"Waiting Pull Requests"},"mode":{"type":"string","enum":["serial","parallel","isolated"],"title":"Mode"},"scope_queues":{"additionalProperties":{"items":{"type":"string","format":"uuid"},"type":"array"},"type":"object","title":"Scope Queues"},"pause":{"anyOf":[{"$ref":"#/components/schemas/MergeQueuePauseResponse"},{"type":"null"}]}},"type":"object","required":["batches","waiting_pull_requests","mode"],"title":"MergeQueueStatus"},"MergeQueueStatusBatchWithSubBatch":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"parent_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Parent Ids"},"status":{"$ref":"#/components/schemas/BatchStatus"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"estimated_merge_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Merge At"},"estimated_ci_finish_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Ci Finish At"},"ci_finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ci Finished At"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"queue_rule_name":{"type":"string","title":"Queue Rule Name"},"checks_summary":{"$ref":"#/components/schemas/BatchChecksSummary"},"pull_requests":{"items":{"$ref":"#/components/schemas/MergeQueueStatusPullRequest"},"type":"array","title":"Pull Requests"},"all_scopes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Scopes","description":"Whether the batch impacts every scope (a merge-queue barrier that cannot run in parallel with any other batch). `false` for an ordinary scoped batch."},"checks_timeout_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checks Timeout At","description":"When the checks will time out and the batch be dequeued, if a checks timeout applies"},"intermediate_results_skipped":{"type":"boolean","title":"Intermediate Results Skipped","description":"True when this batch merged (or is set to merge) without its own CI passing, because a later downstream batch that includes its changes succeeded (skip_intermediate_results).","default":false},"queue_pull_request_number":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Queue Pull Request Number","description":"The number of the pull request the batch's checks run on: the batch pull request, or the user's own pull request for in-place checks. None while the batch has no active check pull request (still preparing, or its creation failed)."},"sub_batches":{"anyOf":[{"items":{"$ref":"#/components/schemas/MergeQueueStatusBatchWithSubBatch"},"type":"array"},{"type":"null"}],"title":"Sub Batches"}},"type":"object","required":["id","name","parent_ids","status","started_at","estimated_merge_at","estimated_ci_finish_at","ci_finished_at","scopes","queue_rule_name","checks_summary","pull_requests"],"title":"MergeQueueStatusBatchWithSubBatch"},"MergeQueueStatusPullRequest":{"properties":{"number":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Number"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"author":{"$ref":"#/components/schemas/PullRequestAuthor"},"queued_at":{"type":"string","format":"date-time","title":"Queued At"},"priority_alias":{"type":"string","title":"Priority Alias"},"priority_rule_name":{"type":"string","title":"Priority Rule Name"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels","deprecated":true},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"all_scopes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Scopes","description":"Whether the pull request impacts every scope (a merge-queue barrier that cannot run in parallel with any other scope). `false` for an ordinary scoped pull request."},"github_labels":{"anyOf":[{"items":{"$ref":"#/components/schemas/PullRequestLabel"},"type":"array"},{"type":"null"}],"title":"Github Labels"},"estimated_merge_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Merge At"},"estimated_ci_finish_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Ci Finish At"},"conflict_with_pull_requests":{"anyOf":[{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array"},{"type":"null"}],"title":"Conflict With Pull Requests"},"batch_reason":{"anyOf":[{"$ref":"#/components/schemas/BatchReason"},{"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 — it can be running CI and `is_frozen` at once. `false` when no freeze affects it."},"dequeue_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dequeue Requested","description":"Whether a manual removal from the queue is pending for this pull request: it was removed via the 'Remove from queue' action / `@mergifyio dequeue` command (or is a stacked pull request that cascade removes with one), and is awaiting completion. The pull request remains listed until it is actually removed. `false` when no manual removal is pending; automatic dequeues (merge, CI failure, push) do not set it."},"depends_on_pull_requests":{"anyOf":[{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array"},{"type":"null"}],"title":"Depends On Pull Requests","description":"Pull request numbers this one is queued behind because it depends on them: the same-repo stack predecessors the merge queue holds it behind (it declared a `Depends-On:` on the stack). It merges after them. `null` when there is no such queued dependency."}},"type":"object","required":["number","title","url","author","queued_at","priority_alias","priority_rule_name","labels","scopes"],"title":"MergeQueueStatusPullRequest"},"MergedCountResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/MergedGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"MergedCountResponse"},"MergedGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/MergedInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"MergedGroupResponse"},"MergedInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"merged":{"type":"integer","title":"Merged"}},"type":"object","required":["start","end","merged"],"title":"MergedInInterval"},"PrExitReasonGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/PrExitReasonInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"PrExitReasonGroupResponse"},"PrExitReasonInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"exit_reason":{"type":"string","title":"Exit Reason"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["start","end","exit_reason","count"],"title":"PrExitReasonInInterval"},"PrExitReasonResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/PrExitReasonGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"PrExitReasonResponse"},"PullRequestAuthor":{"properties":{"id":{"type":"integer","title":"Id"},"login":{"type":"string","title":"Login"}},"type":"object","required":["id","login"],"title":"PullRequestAuthor"},"PullRequestLabel":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"color":{"type":"string","title":"Color"},"default":{"type":"boolean","title":"Default"}},"type":"object","required":["id","name","color","default"],"title":"PullRequestLabel"},"PullRequestQueued":{"properties":{"number":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Number","description":"The number of the pull request"},"position":{"type":"integer","title":"Position","description":"The position of the pull request in the queue. The first pull request in the queue is at position 0"},"priority":{"type":"integer","title":"Priority","description":"The priority of this pull request"},"effective_priority":{"type":"integer","title":"Effective Priority","description":"The effective priority of this pull request"},"priority_alias":{"type":"string","title":"Priority Alias","description":"The priority textual value of this pull request"},"queue_rule":{"$ref":"#/components/schemas/QueueRule","description":"The queue rule associated to this pull request"},"queued_at":{"type":"string","format":"date-time","title":"Queued At","description":"The timestamp when the pull requested has entered in the queue"},"speculative_check_pull_request":{"anyOf":[{"$ref":"#/components/schemas/mergify_engine__web__api__queues__index__SpeculativeCheckPullRequest"},{"type":"null"}],"description":"Use `mergeability_check` instead","deprecated":true},"mergeability_check":{"anyOf":[{"$ref":"#/components/schemas/BriefMergeabilityCheck"},{"type":"null"}],"description":"Information about the mergeability check currently processed"},"estimated_time_of_merge":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Estimated Time Of Merge","description":"The estimated timestamp when this pull request will be merged"},"partition_name":{"type":"string","title":"Partition Name","description":"The name of the partition, if any, in which the pull request is queued"}},"type":"object","required":["number","position","priority","effective_priority","priority_alias","queue_rule","queued_at","speculative_check_pull_request","mergeability_check","estimated_time_of_merge","partition_name"],"title":"PullRequestQueued"},"QuarantineSource":{"type":"string","enum":["manual","auto"]},"QuarantinedTest":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Unique identifier of the quarantine record."},"test_name":{"type":"string","title":"Test Name","description":"Fully qualified name of the quarantined test."},"test_id":{"type":"string","format":"uuid","title":"Test Id","description":"Stable identifier of the test, derived from its name. Identical across every quarantine of the same test and matches the `test_id` filter on the list endpoint."},"reason":{"type":"string","title":"Reason","description":"Free-form reason recorded when the test was quarantined."},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch","description":"Branch name this quarantine applies to. `null` means the test is quarantined on every branch."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"UTC timestamp when the test was added to quarantine."},"source":{"$ref":"#/components/schemas/QuarantineSource","description":"How the test got quarantined: `manual` (user action) or `auto` (auto-quarantined).","default":"manual"},"is_recovered":{"type":"boolean","title":"Is Recovered","description":"True when recent runs of this test are healthy, suggesting the quarantine could be removed."}},"type":"object","required":["id","test_name","test_id","reason","branch","created_at","is_recovered"],"title":"QuarantinedTest"},"QuarantinedTestsResponse":{"properties":{"size":{"type":"integer","title":"Size","description":"The number of items in this page"},"per_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Page","description":"The number of items per page, or `null` when the endpoint was called without `per_page` and returned the full list in a single response."},"quarantined_tests":{"items":{"$ref":"#/components/schemas/QuarantinedTest"},"type":"array","title":"Quarantined Tests"}},"type":"object","required":["size","per_page","quarantined_tests"],"title":"QuarantinedTestsResponse"},"Queue":{"properties":{"branch":{"$ref":"#/components/schemas/Branch","description":"The branch of this queue"},"pull_requests":{"items":{"$ref":"#/components/schemas/PullRequestQueued"},"type":"array","title":"Pull Requests","description":"The pull requests in this queue"}},"type":"object","required":["branch","pull_requests"],"title":"Queue"},"QueueAverageTimeResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/QueueTimeGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"QueueAverageTimeResponse"},"QueueCheck":{"properties":{"name":{"type":"string","title":"Name","description":"Check name"},"description":{"type":"string","title":"Description","description":"Check description"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Check detail url"},"details_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Details Url","description":"External integrator's direct URL (e.g. Jenkins build URL)"},"state":{"$ref":"#/components/schemas/QueueCheckState","description":"Check state"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url","description":"Check avatar_url"}},"type":"object","required":["name","description","url","state","avatar_url"],"title":"QueueCheck"},"QueueCheckState":{"type":"string","enum":["failure","error","cancelled","action_required","timed_out","pending","neutral","skipped","stale","success"]},"QueueChecksOutcome":{"properties":{"BASE_BRANCH_CHANGED":{"type":"integer","title":"Base Branch Changed","description":"The pull request base branch has changed","default":0},"BASE_BRANCH_MISSING":{"type":"integer","title":"Base Branch Missing","description":"The base branch does not exist anymore","default":0},"BATCH_MAX_FAILURE_RESOLUTION_ATTEMPTS":{"type":"integer","title":"Batch Max Failure Resolution Attempts","description":"The maximum batch failure resolution attempts has been reached","default":0},"BATCH_SCOPES_CHANGED":{"type":"integer","title":"Batch Scopes Changed","description":"The batch has been recomposed because a pull request's scopes changed","default":0},"BRANCH_UPDATE_FAILED":{"type":"integer","title":"Branch Update Failed","description":"The pull request can't be updated for security reasons","default":0},"CHECKS_FAILED":{"type":"integer","title":"Checks Failed","description":"The checks for the queued pull request have failed","default":0},"CHECKS_INTERRUPTED":{"type":"integer","title":"Checks Interrupted","description":"The checks for the queued pull request were cancelled before producing a result","default":0},"CHECKS_TIMEOUT":{"type":"integer","title":"Checks Timeout","description":"The checks for the queued pull request have timed out","default":0},"DROPPED_BY_BISECTION_ELIMINATION":{"type":"integer","title":"Dropped By Bisection Elimination","description":"The pull request was dropped untested when batch bisection isolated the failure to other pull requests","default":0},"CONFLICT_WITH_BASE_BRANCH":{"type":"integer","title":"Conflict With Base Branch","description":"The pull request conflicts with the base branch","default":0},"CONFLICT_WITH_PULL_AHEAD":{"type":"integer","title":"Conflict With Pull Ahead","description":"The pull request conflicts with at least one pull request ahead in queue","default":0},"DRAFT_PULL_REQUEST_CHANGED":{"type":"integer","title":"Draft Pull Request Changed","description":"New commits have been added to the draft pull request that were not made by Mergify","default":0},"BATCH_PULL_REQUEST_CLOSED":{"type":"integer","title":"Batch Pull Request Closed","description":"The batch pull request has been closed","default":0},"INCOMPATIBILITY_WITH_BRANCH_PROTECTIONS":{"type":"integer","title":"Incompatibility With Branch Protections","description":"The pull request cannot be checked because of an incompatibility with branch protections","default":0},"MERGE_QUEUE_RESET":{"type":"integer","title":"Merge Queue Reset","description":"The merge queue has been reset","default":0},"PR_AHEAD_DEQUEUED":{"type":"integer","title":"Pr Ahead Dequeued","description":"A pull request ahead in the queue has been dequeued","default":0},"BATCH_AHEAD_FAILED":{"type":"integer","title":"Batch Ahead Failed","description":"A pull request ahead in the queue failed to get merged","default":0},"BATCH_AHEAD_BRANCH_EDITED":{"type":"integer","title":"Batch Ahead Branch Edited","description":"The branch of a batch ahead in the queue was edited, so this batch has been recomposed on top of it","default":0},"PR_CHECKS_STOPPED_BECAUSE_MERGE_QUEUE_PAUSE":{"type":"integer","title":"Pr Checks Stopped Because Merge Queue Pause","description":"The checks have been interrupted because the merge queue is paused on this repository","default":0},"PR_DEQUEUED":{"type":"integer","title":"Pr Dequeued","description":"Pull request has been dequeued","default":0},"PR_DEQUEUED_FROM_PARTITION":{"type":"integer","title":"Pr Dequeued From Partition","description":"Pull request has been dequeued from a partition","default":0},"PR_UNEXPECTEDLY_FAILED_TO_MERGE":{"type":"integer","title":"Pr Unexpectedly Failed To Merge","description":"Pull request unexpectedly failed to get merged","default":0},"PR_WITH_HIGHER_PRIORITY_QUEUED":{"type":"integer","title":"Pr With Higher Priority Queued","description":"A pull request with a higher priority has been queued","default":0},"PULL_REQUEST_UPDATED":{"type":"integer","title":"Pull Request Updated","description":"The pull request has been unexpectedly updated","default":0},"QUEUE_RULE_MISSING":{"type":"integer","title":"Queue Rule Missing","description":"The queue rules are missing because of a configuration change","default":0},"SPECULATIVE_CHECK_NUMBER_REDUCED":{"type":"integer","title":"Speculative Check Number Reduced","description":"The number of speculative checks, in the queue rules, has been reduced","default":0},"SUCCESS":{"type":"integer","title":"Success","description":"Successfully merged the pull request","default":0},"PR_MANUALLY_MERGED":{"type":"integer","title":"Pr Manually Merged","description":"The pull request has been manually merged","default":0},"DRAFT_PULL_REQUEST_CREATION_FAILED":{"type":"integer","title":"Draft Pull Request Creation Failed","description":"The draft pull request cannot be created","default":0},"DRAFT_PULL_REQUEST_CREATION_BRANCH_NOT_INDEXED":{"type":"integer","title":"Draft Pull Request Creation Branch Not Indexed","description":"The draft pull request cannot be created because GitHub has not indexed the branch yet","default":0},"CONFIGURATION_CHANGED":{"type":"integer","title":"Configuration Changed","description":"The configuration has changed","default":0},"UNPROCESSABLE_PULL_REQUEST":{"type":"integer","title":"Unprocessable Pull Request","description":"The pull request could not be processed by Mergify","default":0},"PR_MANUALLY_DEQUEUED":{"type":"integer","title":"Pr Manually Dequeued","description":"The pull request has been manually removed from the queue","default":0},"STACK_PREDECESSOR_DEQUEUED":{"type":"integer","title":"Stack Predecessor Dequeued","description":"The pull request has been dequeued because its stack predecessor was dequeued","default":0},"INTERMEDIATE_RESULTS_SKIPPED":{"type":"integer","title":"Intermediate Results Skipped","description":"The pull request intermediate results have been skipped during batch promotion","default":0},"CHECKS_RETRIED":{"type":"integer","title":"Checks Retried","description":"The checks have failed and are being retried","default":0},"SCHEDULED_FREEZE_STATUS_CHANGED":{"type":"integer","title":"Scheduled Freeze Status Changed","description":"The batch has been split because a scheduled freeze changed the freeze status of its pull requests","default":0},"SCHEDULE_BLOCKED_AHEAD_YIELDED":{"type":"integer","title":"Schedule Blocked Ahead Yielded","description":"A pull request ahead was waiting for its merge schedule, so it yielded its position to let ready pull requests merge first","default":0},"BASE_REF_ALIGNMENT_TIMEOUT":{"type":"integer","title":"Base Ref Alignment Timeout","description":"The stacked pull request's base branch could not be retargeted onto the queue base branch and was dequeued","default":0},"GITHUB_STACKED_PULL_REQUEST_MERGE_UNSUPPORTED":{"type":"integer","title":"Github Stacked Pull Request Merge Unsupported","description":"The pull request is a GitHub-native stacked pull request, which GitHub does not allow merging through the API, and was dequeued","default":0}},"type":"object","title":"QueueChecksOutcome"},"QueueConditionEvaluationJsonSerialized":{"properties":{"match":{"type":"boolean","title":"Match"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"documentation_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documentation Url"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/ScheduleJSON"},{"type":"null"}]},"subconditions":{"items":{"$ref":"#/components/schemas/QueueConditionEvaluationJsonSerialized"},"type":"array","title":"Subconditions"},"evaluations":{"items":{"$ref":"#/components/schemas/Evaluation"},"type":"array","title":"Evaluations"}},"type":"object","required":["match","label","description","documentation_url","schedule","subconditions","evaluations"],"title":"QueueConditionEvaluationJsonSerialized"},"QueueNamesResponse":{"properties":{"queue_names":{"items":{"type":"string"},"type":"array","title":"Queue Names"}},"type":"object","required":["queue_names"],"title":"QueueNamesResponse"},"QueuePause":{"properties":{"reason":{"type":"string","maxLength":255,"title":"Reason","description":"The reason of the queue pause"},"pause_date":{"type":"string","format":"date-time","title":"Pause Date","description":"The date and time of the freeze"}},"type":"object","required":["reason","pause_date"],"title":"QueuePause"},"QueuePausePayload":{"properties":{"reason":{"type":"string","maxLength":255,"title":"Reason","description":"The reason of the queue pause"}},"type":"object","required":["reason"],"title":"QueuePausePayload"},"QueuePauseResponse":{"properties":{"queue_pause":{"items":{"$ref":"#/components/schemas/QueuePause"},"type":"array","title":"Queue Pause","description":"The pause of the repository"}},"type":"object","required":["queue_pause"],"title":"QueuePauseResponse"},"QueueRule":{"properties":{"name":{"type":"string","title":"Name","description":"The name of the queue rule"},"config":{"additionalProperties":true,"type":"object","description":"The configuration of the queue rule"}},"type":"object","required":["name","config"],"title":"QueueRule"},"QueueSizeGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/QueueSizeInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"QueueSizeGroupResponse"},"QueueSizeInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"avg_size":{"type":"number","title":"Avg Size"},"max_size":{"type":"integer","title":"Max Size"},"min_size":{"type":"integer","title":"Min Size"}},"type":"object","required":["start","end","avg_size","max_size","min_size"],"title":"QueueSizeInInterval"},"QueueSizeResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/QueueSizeGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"QueueSizeResponse"},"QueueStatsResponse":{"properties":{"stat":{"type":"string","enum":["total_jobs","avg_wait_time","min_wait_time","median_wait_time","p95_wait_time","p99_wait_time","max_wait_time"],"title":"Stat"},"value":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value"},"value_over_time":{"items":{"$ref":"#/components/schemas/_QueueStatsBucket"},"type":"array","title":"Value Over Time"}},"type":"object","required":["stat","value","value_over_time"],"title":"QueueStatsResponse"},"QueueTimeGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/QueueTimeInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"QueueTimeGroupResponse"},"QueueTimeInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"avg_queue_time":{"type":"number","title":"Avg Queue Time"},"max_queue_time":{"type":"number","title":"Max Queue Time"},"min_queue_time":{"type":"number","title":"Min Queue Time"},"sum_queue_time":{"type":"number","title":"Sum Queue Time"},"count_queue_time":{"type":"integer","title":"Count Queue Time"}},"type":"object","required":["start","end","avg_queue_time","max_queue_time","min_queue_time","sum_queue_time","count_queue_time"],"title":"QueueTimeInInterval"},"Queues":{"properties":{"queues":{"items":{"$ref":"#/components/schemas/Queue"},"type":"array","title":"Queues","description":"The queues of the repository"}},"type":"object","required":["queues"],"title":"Queues"},"QueuesConfig":{"properties":{"configuration":{"items":{"$ref":"#/components/schemas/QueueRule"},"type":"array","title":"Configuration","description":"The queues configuration of the repository"}},"type":"object","required":["configuration"],"title":"QueuesConfig"},"RepositoryBodyInput":{"properties":{"products":{"items":{"type":"string","enum":["ci_insights","merge_protections","workflow_automation","merge_queue"]},"type":"array","title":"Products"}},"type":"object","required":["products"],"title":"RepositoryBodyInput"},"RepositoryConfigurationSimulatorResponse":{"properties":{"message":{"type":"string","title":"Message","description":"The message of the Mergify check run simulation"},"deprecations":{"items":{"$ref":"#/components/schemas/DeprecationInfo"},"type":"array","title":"Deprecations","description":"Deprecation notices detected in the configuration"}},"type":"object","required":["message","deprecations"],"title":"RepositoryConfigurationSimulatorResponse"},"RunnerCountStatsResponse":{"properties":{"value":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value"},"value_over_time":{"items":{"$ref":"#/components/schemas/_RunnerStatsBucket_int_"},"type":"array","title":"Value Over Time"},"stat":{"type":"string","enum":["active_runners","active_jobs"],"title":"Stat"}},"type":"object","required":["value","value_over_time","stat"],"title":"RunnerCountStatsResponse"},"RunnerDurationStatsResponse":{"properties":{"value":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value"},"value_over_time":{"items":{"$ref":"#/components/schemas/_RunnerStatsBucket_int_"},"type":"array","title":"Value Over Time"},"stat":{"type":"string","enum":["avg_duration","min_duration","median_duration","p95_duration","p99_duration","max_duration"],"title":"Stat"}},"type":"object","required":["value","value_over_time","stat"],"title":"RunnerDurationStatsResponse"},"RunnerRateStatsResponse":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"value_over_time":{"items":{"$ref":"#/components/schemas/_RunnerStatsBucket_float_"},"type":"array","title":"Value Over Time"},"stat":{"type":"string","enum":["success_rate","jobs_per_hour","avg_jobs_per_hour","utilization_rate"],"title":"Stat"}},"type":"object","required":["value","value_over_time","stat"],"title":"RunnerRateStatsResponse"},"RunningChecksGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"stats":{"items":{"$ref":"#/components/schemas/RunningChecksInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","stats"],"title":"RunningChecksGroupResponse"},"RunningChecksInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"avg_running_checks":{"type":"number","title":"Avg Running Checks"},"max_running_checks":{"type":"integer","title":"Max Running Checks"},"min_running_checks":{"type":"integer","title":"Min Running Checks"}},"type":"object","required":["start","end","avg_running_checks","max_running_checks","min_running_checks"],"title":"RunningChecksInInterval"},"RunningChecksResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/RunningChecksGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"RunningChecksResponse"},"RuntimeInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"runtime":{"type":"number","title":"Runtime"},"sum_runtime":{"type":"number","title":"Sum Runtime"},"count_runtime":{"type":"integer","title":"Count Runtime"}},"type":"object","required":["start","end","runtime","sum_runtime","count_runtime"],"title":"RuntimeInInterval"},"ScheduleJSON":{"properties":{"timezone":{"type":"string","title":"Timezone"},"days":{"additionalProperties":{"$ref":"#/components/schemas/DayJSON"},"type":"object","title":"Days"}},"type":"object","required":["timezone","days"],"title":"ScheduleJSON"},"ScheduledFreezeEventLogAttributes":{"properties":{"reason":{"type":"string","title":"Reason"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"},"timezone":{"type":"string","title":"Timezone"},"matching_conditions":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Output"},{"type":"string"}]},"type":"array","title":"Matching Conditions"},"exclude_conditions":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Output"},{"type":"string"}]},"type":"array","title":"Exclude Conditions"}},"type":"object","required":["reason","start","end","timezone","matching_conditions","exclude_conditions"],"title":"ScheduledFreezeEventLogAttributes"},"ScheduledFreezeObjectResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reason":{"type":"string","title":"Reason"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"},"timezone":{"type":"string","title":"Timezone"},"matching_conditions":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Output"},{"type":"string"}]},"type":"array","title":"Matching Conditions"},"exclude_conditions":{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Output"},{"type":"string"}]},"type":"array","title":"Exclude Conditions"}},"type":"object","required":["id","reason","start","end","timezone","matching_conditions"],"title":"ScheduledFreezeObjectResponse"},"ScopesBody":{"properties":{"scopes":{"items":{"type":"string"},"type":"array","uniqueItems":true,"title":"Scopes"},"all_scopes":{"type":"boolean","title":"All Scopes","default":false}},"type":"object","required":["scopes"],"title":"ScopesBody"},"SearchTestsResponse":{"properties":{"size":{"type":"integer","title":"Size","description":"The number of items in this page"},"per_page":{"type":"integer","title":"Per Page","description":"The number of items per page"},"tests":{"items":{"$ref":"#/components/schemas/TestSearchResult"},"type":"array","title":"Tests","description":"Test identities matching the search query."},"total":{"type":"integer","title":"Total","description":"Total number of test identities matching the search query, across all pages."}},"type":"object","required":["size","per_page","tests","total"],"title":"SearchTestsResponse"},"SimpleConditionMatchSerialized":{"properties":{"attribute":{"type":"string","title":"Attribute"},"matched_value":{"type":"string","title":"Matched Value"}},"type":"object","required":["attribute","matched_value"],"title":"SimpleConditionMatchSerialized"},"SimulatorPayload":{"properties":{"mergify_yml":{"type":"string","maxLength":1048576,"title":"Mergify Yml","description":"A Mergify configuration"}},"type":"object","required":["mergify_yml"],"title":"SimulatorPayload"},"SimulatorResponse":{"properties":{"title":{"type":"string","title":"Title","description":"The title of the Mergify check run simulation"},"summary":{"type":"string","title":"Summary","description":"The summary of the Mergify check run simulation"},"deprecations":{"items":{"$ref":"#/components/schemas/DeprecationInfo"},"type":"array","title":"Deprecations","description":"Deprecation notices detected in the configuration"}},"type":"object","required":["title","summary","deprecations"],"title":"SimulatorResponse"},"SkipIntermediateResultsGroupResponse":{"properties":{"base_ref":{"type":"string","title":"Base Ref"},"queue_name":{"type":"string","title":"Queue Name"},"priority_rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Rule Name"},"stats":{"items":{"$ref":"#/components/schemas/SkipIntermediateResultsInInterval"},"type":"array","title":"Stats"}},"type":"object","required":["base_ref","queue_name","priority_rule_name","stats"],"title":"SkipIntermediateResultsGroupResponse"},"SkipIntermediateResultsInInterval":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"batches_saved":{"type":"integer","title":"Batches Saved"}},"type":"object","required":["start","end","batches_saved"],"title":"SkipIntermediateResultsInInterval"},"SkipIntermediateResultsResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/SkipIntermediateResultsGroupResponse"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"SkipIntermediateResultsResponse"},"TestAddedToQuarantineResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The ID of the created quarantine"}},"type":"object","required":["id"],"title":"TestAddedToQuarantineResponse"},"TestCountStatsResponse":{"properties":{"value":{"type":"integer","title":"Value"},"value_over_time":{"items":{"$ref":"#/components/schemas/_TestStatsBucket_int_"},"type":"array","title":"Value Over Time"},"stat":{"type":"string","enum":["success_count","failure_count","flaky_count"],"title":"Stat"}},"type":"object","required":["value","value_over_time","stat"],"title":"TestCountStatsResponse"},"TestDurationStatsResponse":{"properties":{"value":{"type":"number","title":"Value"},"value_over_time":{"items":{"$ref":"#/components/schemas/_TestStatsBucket_float_"},"type":"array","title":"Value Over Time"},"stat":{"type":"string","const":"mean_duration","title":"Stat"}},"type":"object","required":["value","value_over_time","stat"],"title":"TestDurationStatsResponse"},"TestExecutionResult":{"properties":{"test_id":{"type":"string","format":"uuid5","title":"Test Id","description":"Stable identifier of the test. Matches the `test_id` in the URL."},"test_name":{"type":"string","title":"Test Name","description":"Fully qualified name of the test as reported by the CI provider."},"pipeline_name":{"type":"string","title":"Pipeline Name","description":"Name of the pipeline (workflow) that ran the test."},"job_name":{"type":"string","title":"Job Name","description":"Name of the job within the pipeline that ran the test."},"executions_count":{"type":"integer","title":"Executions Count","description":"Number of executions of this test under this identity over the requested time window."}},"type":"object","required":["test_id","test_name","pipeline_name","job_name","executions_count"],"title":"TestExecutionResult"},"TestFailure":{"properties":{"id":{"type":"string","format":"uuid5","title":"Id"},"exception_type":{"type":"string","title":"Exception Type"},"exception_message":{"type":"string","title":"Exception Message"},"failure_count":{"type":"integer","title":"Failure Count"},"first_failure_at":{"type":"string","format":"date-time","title":"First Failure At"},"last_failure_at":{"type":"string","format":"date-time","title":"Last Failure At"}},"type":"object","required":["id","exception_type","exception_message","failure_count","first_failure_at","last_failure_at"],"title":"TestFailure"},"TestFailureEvent":{"properties":{"id":{"type":"string","title":"Id"},"failed_at":{"type":"string","format":"date-time","title":"Failed At"},"exception_stacktrace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exception Stacktrace"},"test_filepath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Filepath"},"test_programming_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Programming Language"},"job_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Url"}},"type":"object","required":["id","failed_at","exception_stacktrace","test_filepath","test_programming_language"],"title":"TestFailureEvent"},"TestQuarantineSnapshot":{"properties":{"source":{"$ref":"#/components/schemas/QuarantineSource"},"reason":{"type":"string","title":"Reason"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["source","reason","branch","created_at"],"title":"TestQuarantineSnapshot"},"TestSearchResult":{"properties":{"test_id":{"type":"string","format":"uuid5","title":"Test Id","description":"Stable identifier of the test. Pass it to the per-test endpoints to fetch details, metrics, or failures."},"test_name":{"type":"string","title":"Test Name","description":"Fully qualified name of the test as reported by the CI provider."},"pipeline_name":{"type":"string","title":"Pipeline Name","description":"Name of the pipeline (workflow) that ran the test."},"job_name":{"type":"string","title":"Job Name","description":"Name of the job within the pipeline that ran the test."},"metrics":{"$ref":"#/components/schemas/TestSearchResultMetrics","description":"Health metrics of the test identity."}},"type":"object","required":["test_id","test_name","pipeline_name","job_name","metrics"],"title":"TestSearchResult"},"TestSearchResultMetrics":{"properties":{"health_status":{"$ref":"#/components/schemas/HealthStatus","description":"Current health classification of the test: healthy, flaky, or broken."},"health_confidence":{"$ref":"#/components/schemas/HealthConfidence","description":"Confidence in the health classification, derived from how many times the test has been rerun."},"failed_executions_impact":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Failed Executions Impact","description":"Impact of the test's failures, derived from its failure ratio. `null` for healthy tests, which have no meaningful failure impact."}},"type":"object","required":["health_status","health_confidence","failed_executions_impact"],"title":"TestSearchResultMetrics"},"TestStatBucket":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"value":{"type":"integer","title":"Value"}},"type":"object","required":["start","end","value"],"title":"TestStatBucket"},"TimeJSON":{"properties":{"hour":{"type":"integer","title":"Hour"},"minute":{"type":"integer","title":"Minute"}},"type":"object","required":["hour","minute"],"title":"TimeJSON"},"TimeRangeJSON":{"properties":{"start_at":{"$ref":"#/components/schemas/TimeJSON"},"end_at":{"$ref":"#/components/schemas/TimeJSON"}},"type":"object","required":["start_at","end_at"],"title":"TimeRangeJSON"},"TimeToMergePerPartition":{"properties":{"queues":{"items":{"$ref":"#/components/schemas/TimeToMergePerQueue"},"type":"array","title":"Queues","description":"The time to merge data for each queue"}},"type":"object","required":["queues"],"title":"TimeToMergePerPartition"},"TimeToMergePerQueue":{"properties":{"queue_name":{"type":"string","title":"Queue Name","description":"The name of the queue"},"time_to_merge":{"$ref":"#/components/schemas/TimeToMergeResponse","description":"The time to merge data for the queue"}},"type":"object","required":["queue_name","time_to_merge"],"title":"TimeToMergePerQueue"},"TimeToMergeResponse":{"properties":{"mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean"},"median":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median"}},"type":"object","required":["mean","median"],"title":"TimeToMergeResponse"},"UpdateScheduledFreezePayload":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Reason","description":"The reason for the scheduled freeze."},"start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start","description":"When the scheduled freeze begins (date and time in ISO 8601 format without TZ). Can only be updated if the scheduled freeze has not yet begun. Set to null to start now."},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End","description":"When the scheduled freeze ends (date and time in ISO 8601 format without TZ). Set to null for an indefinite freeze."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","description":"Timezone where the freeze is expected to happen."},"matching_conditions":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Input"},{"type":"string"}]},"type":"array"},{"type":"null"}],"title":"Matching Conditions","description":"List of conditions used to match pull requests that need to be frozen during the scheduled freeze."},"exclude_conditions":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/MatchingConditionsDict-Input"},{"type":"string"}]},"type":"array"},{"type":"null"}],"title":"Exclude Conditions","description":"List of conditions used to exclude pull requests from the scheduled freeze. Pull requests matching these conditions will not be frozen."}},"type":"object","title":"UpdateScheduledFreezePayload"},"_QueueStatsBucket":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"value":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value"}},"type":"object","required":["start","end","value"],"title":"_QueueStatsBucket"},"_RunnerStatsBucket_float_":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","required":["start","end","value"],"title":"_RunnerStatsBucket[float]"},"_RunnerStatsBucket_int_":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"value":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Value"}},"type":"object","required":["start","end","value"],"title":"_RunnerStatsBucket[int]"},"_TestStatsBucket_float_":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"value":{"type":"number","title":"Value"}},"type":"object","required":["start","end","value"],"title":"_TestStatsBucket[float]"},"_TestStatsBucket_int_":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"value":{"type":"integer","title":"Value"}},"type":"object","required":["start","end","value"],"title":"_TestStatsBucket[int]"},"mergify_engine__queue__merge_queue__checks__QueueCheck__Serialized":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"details_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Details Url"},"state":{"$ref":"#/components/schemas/QueueCheckState"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["name","description","url","state","avatar_url"],"title":"Serialized"},"mergify_engine__rules__conditions__QueueConditionEvaluationResult__Evaluation__Serialized":{"properties":{"pull_request":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Pull Request"},"match":{"type":"boolean","title":"Match"},"evaluation_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluation Error"},"related_checks":{"items":{"type":"string"},"type":"array","title":"Related Checks"},"next_evaluation_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Evaluation At"}},"type":"object","required":["pull_request","match","evaluation_error","related_checks","next_evaluation_at"],"title":"Serialized"},"mergify_engine__rules__conditions__QueueConditionEvaluationResult__Serialized":{"properties":{"match":{"type":"boolean","title":"Match"},"label":{"type":"string","title":"Label"},"is_label_user_input":{"type":"boolean","title":"Is Label User Input"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"attribute_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribute Name"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator"},"schedule":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule"},"subconditions":{"items":{"$ref":"#/components/schemas/mergify_engine__rules__conditions__QueueConditionEvaluationResult__Serialized"},"type":"array","title":"Subconditions"},"evaluations":{"items":{"$ref":"#/components/schemas/mergify_engine__rules__conditions__QueueConditionEvaluationResult__Evaluation__Serialized"},"type":"array","title":"Evaluations"}},"type":"object","required":["match","label","is_label_user_input","description","attribute_name","operator","schedule","subconditions","evaluations"],"title":"Serialized"},"mergify_engine__signals__SpeculativeCheckPullRequest":{"properties":{"number":{"type":"integer","title":"Number"},"in_place":{"type":"boolean","title":"In Place"},"checks_timed_out":{"type":"boolean","title":"Checks Timed Out"},"checks_conclusion":{"type":"string","enum":["success","failure","neutral","cancelled","skipped","stale","action_required","timed_out","error","pending"],"title":"Checks Conclusion"},"checks_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checks Started At"},"checks_ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checks Ended At"},"unsuccessful_checks":{"items":{"$ref":"#/components/schemas/mergify_engine__queue__merge_queue__checks__QueueCheck__Serialized"},"type":"array","title":"Unsuccessful Checks"},"pull_request_numbers":{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"type":"array","title":"Pull Request Numbers"}},"type":"object","required":["number","in_place","checks_timed_out","checks_conclusion","checks_started_at","checks_ended_at","unsuccessful_checks","pull_request_numbers"],"title":"SpeculativeCheckPullRequest"},"mergify_engine__web__api__queues__index__SpeculativeCheckPullRequest":{"properties":{"in_place":{"type":"boolean","title":"In Place","description":"Whether the pull request has been checked in-place"},"number":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Number","description":"The number of the pull request used by the speculative check"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"The timestamp when the checks have started for this pull request"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At","description":"The timestamp when the checks have ended for this pull request"},"checks":{"items":{"$ref":"#/components/schemas/QueueCheck"},"type":"array","title":"Checks","description":"The list of pull request checks"},"evaluated_conditions":{"type":"string","title":"Evaluated Conditions","description":"The queue rule conditions evaluation report"},"state":{"$ref":"#/components/schemas/QueueCheckState","description":"The global state of the checks"}},"type":"object","required":["in_place","number","started_at","ended_at","checks","evaluated_conditions","state"],"title":"SpeculativeCheckPullRequest"}},"securitySchemes":{"GitHubTokenBearerAuth":{"type":"http","description":"GitHub user access token (ghp_*, github_pat_*, or gho_*)","scheme":"bearer"},"MergifyTokenBearerAuth":{"type":"http","description":"Mergify user token (mut_*), obtained through the OAuth 2.0 device authorization grant. It reaches exactly what its owner's dashboard session reaches, and nothing on GitHub directly.","scheme":"bearer"},"AdminApplicationKey":{"type":"http","scheme":"bearer","description":"Mergify application key created with the `admin` scope. Send it as `Authorization: Bearer <key>`. Each operation's `security` states which keys it accepts. See [Application key scopes](https://docs.mergify.com/api/usage#application-key-scopes)."},"CIApplicationKey":{"type":"http","scheme":"bearer","description":"Mergify application key created with the `ci` scope. Send it as `Authorization: Bearer <key>`. Each operation's `security` states which keys it accepts. See [Application key scopes](https://docs.mergify.com/api/usage#application-key-scopes)."}}},"tags":[{"name":"activity_log","description":"Operations with the activity log."},{"name":"applications","description":"Operations with applications."},{"name":"ci_insights","description":"Operations with ci insights."},{"name":"configuration-autofix","description":"AI-assisted fix for invalid Mergify configurations."},{"name":"installations","description":"Operation with installations."},{"name":"integrations","description":"Operation with integrations."},{"name":"merge_protections","description":"Operations with merge protections."},{"name":"merge_queue","description":"Operation with the merge queue."},{"name":"oauth","description":"OAuth 2.0 device authorization grant."},{"name":"orgs","description":"Operation with organizations."},{"name":"products","description":"Operations with products."},{"name":"pull_requests","description":"Operations with pull requests."},{"name":"queues","description":"Operations with queues."},{"name":"repositories","description":"Operation with repositories."},{"name":"repository_rulesets","description":"Operation with repository rulesets."},{"name":"scheduled_freeze","description":"Operations with scheduled freezes."},{"name":"simulator","description":"Mergify configuration simulator."},{"name":"statistics","description":"Operations with statistics."},{"name":"test_insights","description":"Operations with test insights."}]}