Skip to content

Commit f34e7ec

Browse files
author
Octokit Bot
committed
WIP: schema updates
1 parent d197c7b commit f34e7ec

File tree

21 files changed

+179
-134
lines changed

21 files changed

+179
-134
lines changed

cache/api.github.com.json

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14836,8 +14836,7 @@
1483614836
},
1483714837
"repository-dispatch-sample.collected": {
1483814838
"post": {
14839-
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event).\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
14840-
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.",
14839+
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
1484114840
"operationId": "repository-dispatch/sample.collected",
1484214841
"externalDocs": {
1484314842
"url": "https://docs.github.com/webhooks/webhook-events-and-payloads#repository_dispatch"
@@ -27182,17 +27181,17 @@
2718227181
}
2718327182
}
2718427183
},
27185-
"repository-rule-params-thresholds": {
27186-
"title": "Thresholds",
27187-
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
27184+
"repository-rule-params-code-scanning-threshold": {
27185+
"title": "CodeScanningThreshold",
27186+
"description": "A tool and its thresholds.",
2718827187
"type": "object",
2718927188
"properties": {
27190-
"code_scanning_alert_threshold": {
27189+
"alerts": {
2719127190
"type": "string",
2719227191
"description": "Code scanning alert threshold",
2719327192
"enum": ["none", "errors", "errors_and_warnings", "all"]
2719427193
},
27195-
"code_scanning_security_alert_threshold": {
27194+
"security_alerts": {
2719627195
"type": "string",
2719727196
"description": "Code scanning security alert threshold.",
2719827197
"enum": [
@@ -27202,12 +27201,13 @@
2720227201
"medium_or_higher",
2720327202
"all"
2720427203
]
27204+
},
27205+
"tool": {
27206+
"type": "string",
27207+
"description": "The name of a code scanning tool"
2720527208
}
2720627209
},
27207-
"required": [
27208-
"code_scanning_alert_threshold",
27209-
"code_scanning_security_alert_threshold"
27210-
]
27210+
"required": ["alerts", "security_alerts", "tool"]
2721127211
},
2721227212
"repository-rule": {
2721327213
"title": "Repository Rule",
@@ -126612,11 +126612,15 @@
126612126612
"title": "repository_dispatch event",
126613126613
"type": "object",
126614126614
"properties": {
126615-
"action": { "type": "string", "enum": ["sample.collected"] },
126615+
"action": {
126616+
"type": "string",
126617+
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
126618+
},
126616126619
"branch": { "type": "string" },
126617126620
"client_payload": {
126618126621
"type": ["object", "null"],
126619-
"additionalProperties": true
126622+
"additionalProperties": true,
126623+
"description": "The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
126620126624
},
126621126625
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
126622126626
"installation": {

cache/ghec.json

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14842,8 +14842,7 @@
1484214842
},
1484314843
"repository-dispatch-sample.collected": {
1484414844
"post": {
14845-
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#create-a-repository-dispatch-event).\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
14846-
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.",
14845+
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
1484714846
"operationId": "repository-dispatch/sample.collected",
1484814847
"externalDocs": {
1484914848
"url": "https://docs.github.com/enterprise-cloud@latest//webhooks/webhook-events-and-payloads#repository_dispatch"
@@ -22426,6 +22425,11 @@
2242622425
"description": "Whether GitHub advanced security is automatically enabled for new repositories and repositories transferred to\nthis enterprise.",
2242722426
"examples": [false]
2242822427
},
22428+
"advanced_security_enabled_for_new_user_namespace_repositories": {
22429+
"type": "boolean",
22430+
"description": "Whether GitHub Advanced Security is automatically enabled for new user namespace repositories.",
22431+
"examples": [false]
22432+
},
2242922433
"dependabot_alerts_enabled_for_new_repositories": {
2243022434
"type": "boolean",
2243122435
"description": "Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this\nenterprise.",
@@ -28305,17 +28309,17 @@
2830528309
}
2830628310
}
2830728311
},
28308-
"repository-rule-params-thresholds": {
28309-
"title": "Thresholds",
28310-
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
28312+
"repository-rule-params-code-scanning-threshold": {
28313+
"title": "CodeScanningThreshold",
28314+
"description": "A tool and its thresholds.",
2831128315
"type": "object",
2831228316
"properties": {
28313-
"code_scanning_alert_threshold": {
28317+
"alerts": {
2831428318
"type": "string",
2831528319
"description": "Code scanning alert threshold",
2831628320
"enum": ["none", "errors", "errors_and_warnings", "all"]
2831728321
},
28318-
"code_scanning_security_alert_threshold": {
28322+
"security_alerts": {
2831928323
"type": "string",
2832028324
"description": "Code scanning security alert threshold.",
2832128325
"enum": [
@@ -28325,12 +28329,13 @@
2832528329
"medium_or_higher",
2832628330
"all"
2832728331
]
28332+
},
28333+
"tool": {
28334+
"type": "string",
28335+
"description": "The name of a code scanning tool"
2832828336
}
2832928337
},
28330-
"required": [
28331-
"code_scanning_alert_threshold",
28332-
"code_scanning_security_alert_threshold"
28333-
]
28338+
"required": ["alerts", "security_alerts", "tool"]
2833428339
},
2833528340
"repository-rule": {
2833628341
"title": "Repository Rule",
@@ -128357,11 +128362,15 @@
128357128362
"title": "repository_dispatch event",
128358128363
"type": "object",
128359128364
"properties": {
128360-
"action": { "type": "string", "enum": ["sample.collected"] },
128365+
"action": {
128366+
"type": "string",
128367+
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
128368+
},
128361128369
"branch": { "type": "string" },
128362128370
"client_payload": {
128363128371
"type": ["object", "null"],
128364-
"additionalProperties": true
128372+
"additionalProperties": true,
128373+
"description": "The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
128365128374
},
128366128375
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
128367128376
"installation": {
@@ -166138,6 +166147,7 @@
166138166147
"type": "string",
166139166148
"enum": [
166140166149
"advanced_security",
166150+
"advanced_security_user_namespace",
166141166151
"dependabot_alerts",
166142166152
"secret_scanning",
166143166153
"secret_scanning_push_protection"

cache/ghes-3.10.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15743,8 +15743,7 @@
1574315743
},
1574415744
"repository-dispatch-sample.collected": {
1574515745
"post": {
15746-
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/[email protected]/rest/repos/repos#create-a-repository-dispatch-event).\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
15747-
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.",
15746+
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/[email protected]/rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
1574815747
"operationId": "repository-dispatch/sample.collected",
1574915748
"externalDocs": {
1575015749
"url": "https://docs.github.com/[email protected]/webhooks/webhook-events-and-payloads#repository_dispatch"
@@ -120473,11 +120472,15 @@
120473120472
"title": "repository_dispatch event",
120474120473
"type": "object",
120475120474
"properties": {
120476-
"action": { "type": "string", "enum": ["sample.collected"] },
120475+
"action": {
120476+
"type": "string",
120477+
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
120478+
},
120477120479
"branch": { "type": "string" },
120478120480
"client_payload": {
120479120481
"type": ["object", "null"],
120480-
"additionalProperties": true
120482+
"additionalProperties": true,
120483+
"description": "The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
120481120484
},
120482120485
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
120483120486
"installation": {

cache/ghes-3.11.json

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15893,8 +15893,7 @@
1589315893
},
1589415894
"repository-dispatch-sample.collected": {
1589515895
"post": {
15896-
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/[email protected]/rest/repos/repos#create-a-repository-dispatch-event).\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
15897-
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.",
15896+
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/[email protected]/rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
1589815897
"operationId": "repository-dispatch/sample.collected",
1589915898
"externalDocs": {
1590015899
"url": "https://docs.github.com/[email protected]/webhooks/webhook-events-and-payloads#repository_dispatch"
@@ -28474,17 +28473,17 @@
2847428473
}
2847528474
}
2847628475
},
28477-
"repository-rule-params-thresholds": {
28478-
"title": "Thresholds",
28479-
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
28476+
"repository-rule-params-code-scanning-threshold": {
28477+
"title": "CodeScanningThreshold",
28478+
"description": "A tool and its thresholds.",
2848028479
"type": "object",
2848128480
"properties": {
28482-
"code_scanning_alert_threshold": {
28481+
"alerts": {
2848328482
"type": "string",
2848428483
"description": "Code scanning alert threshold",
2848528484
"enum": ["none", "errors", "errors_and_warnings", "all"]
2848628485
},
28487-
"code_scanning_security_alert_threshold": {
28486+
"security_alerts": {
2848828487
"type": "string",
2848928488
"description": "Code scanning security alert threshold.",
2849028489
"enum": [
@@ -28494,12 +28493,13 @@
2849428493
"medium_or_higher",
2849528494
"all"
2849628495
]
28496+
},
28497+
"tool": {
28498+
"type": "string",
28499+
"description": "The name of a code scanning tool"
2849728500
}
2849828501
},
28499-
"required": [
28500-
"code_scanning_alert_threshold",
28501-
"code_scanning_security_alert_threshold"
28502-
]
28502+
"required": ["alerts", "security_alerts", "tool"]
2850328503
},
2850428504
"repository-rule": {
2850528505
"title": "Repository Rule",
@@ -122026,11 +122026,15 @@
122026122026
"title": "repository_dispatch event",
122027122027
"type": "object",
122028122028
"properties": {
122029-
"action": { "type": "string", "enum": ["sample.collected"] },
122029+
"action": {
122030+
"type": "string",
122031+
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
122032+
},
122030122033
"branch": { "type": "string" },
122031122034
"client_payload": {
122032122035
"type": ["object", "null"],
122033-
"additionalProperties": true
122036+
"additionalProperties": true,
122037+
"description": "The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
122034122038
},
122035122039
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
122036122040
"installation": {

cache/ghes-3.12.json

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16067,8 +16067,7 @@
1606716067
},
1606816068
"repository-dispatch-sample.collected": {
1606916069
"post": {
16070-
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/[email protected]/rest/repos/repos#create-a-repository-dispatch-event).\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
16071-
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.",
16070+
"summary": "This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/[email protected]/rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Contents\" repository permission.",
1607216071
"operationId": "repository-dispatch/sample.collected",
1607316072
"externalDocs": {
1607416073
"url": "https://docs.github.com/[email protected]/webhooks/webhook-events-and-payloads#repository_dispatch"
@@ -29124,17 +29123,17 @@
2912429123
}
2912529124
}
2912629125
},
29127-
"repository-rule-params-thresholds": {
29128-
"title": "Thresholds",
29129-
"description": "This setting will not take effect unless at least one code scanning status check is enabled.",
29126+
"repository-rule-params-code-scanning-threshold": {
29127+
"title": "CodeScanningThreshold",
29128+
"description": "A tool and its thresholds.",
2913029129
"type": "object",
2913129130
"properties": {
29132-
"code_scanning_alert_threshold": {
29131+
"alerts": {
2913329132
"type": "string",
2913429133
"description": "Code scanning alert threshold",
2913529134
"enum": ["none", "errors", "errors_and_warnings", "all"]
2913629135
},
29137-
"code_scanning_security_alert_threshold": {
29136+
"security_alerts": {
2913829137
"type": "string",
2913929138
"description": "Code scanning security alert threshold.",
2914029139
"enum": [
@@ -29144,12 +29143,13 @@
2914429143
"medium_or_higher",
2914529144
"all"
2914629145
]
29146+
},
29147+
"tool": {
29148+
"type": "string",
29149+
"description": "The name of a code scanning tool"
2914729150
}
2914829151
},
29149-
"required": [
29150-
"code_scanning_alert_threshold",
29151-
"code_scanning_security_alert_threshold"
29152-
]
29152+
"required": ["alerts", "security_alerts", "tool"]
2915329153
},
2915429154
"repository-rule": {
2915529155
"title": "Repository Rule",
@@ -122883,11 +122883,15 @@
122883122883
"title": "repository_dispatch event",
122884122884
"type": "object",
122885122885
"properties": {
122886-
"action": { "type": "string", "enum": ["sample.collected"] },
122886+
"action": {
122887+
"type": "string",
122888+
"description": "The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
122889+
},
122887122890
"branch": { "type": "string" },
122888122891
"client_payload": {
122889122892
"type": ["object", "null"],
122890-
"additionalProperties": true
122893+
"additionalProperties": true,
122894+
"description": "The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body."
122891122895
},
122892122896
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
122893122897
"installation": {

0 commit comments

Comments
 (0)