diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 13d98694959..539928a0a60 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "1f428455b4cea06755dbb12f469fc171", + "specHash": "258d33610c11c1d10d29617d894e1ce8", "generatedFiles": { "files": [ { @@ -440,7 +440,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningOrganizationAlertItems.php", - "hash": "2f8e2e63012bcce47f7b26ec709174c6" + "hash": "3710c419a0a4d200bcd85f0227a47fbc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodespaceMachine.php", @@ -844,11 +844,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRuleSummary.php", - "hash": "d31d1a0df17cad29106204b4749d0550" + "hash": "3d313d12408b39ac2145d20fa08ad45c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertItems.php", - "hash": "6890258dc8a7950fc2dcad38a2f554c6" + "hash": "25e47067404179c058125d6893424f86" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlert.php", @@ -1308,7 +1308,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/PullRequestReview.php", - "hash": "34ef1d29ef808d513a7bf73066da474d" + "hash": "d705f5ad9a1b1feab6c273ba6ee38687" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ReviewComment.php", @@ -5612,7 +5612,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "8424548ebe6553d096fbe836b3a9382f" + "hash": "16d5e12cbe10bf1544d358fb6ce2264c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -29824,7 +29824,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php", - "hash": "0f0cad39f86e6ac4799e47f3d4c2fa07" + "hash": "9a02ccb9703c1159bd4b88452a72da78" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php", diff --git a/clients/GitHub/src/Schema/CodeScanningAlertItems.php b/clients/GitHub/src/Schema/CodeScanningAlertItems.php index 79d52cd5c63..9e28e568539 100644 --- a/clients/GitHub/src/Schema/CodeScanningAlertItems.php +++ b/clients/GitHub/src/Schema/CodeScanningAlertItems.php @@ -292,16 +292,6 @@ "type": "string", "description": "The name of the rule used to detect the alert." }, - "tags": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "A set of tags applicable for the rule." - }, "severity": { "enum": [ "none", @@ -333,6 +323,16 @@ "description": { "type": "string", "description": "A short description of the rule used to detect the alert." + }, + "tags": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "A set of tags applicable for the rule." } } }, @@ -484,10 +484,10 @@ "rule": { "id": "generated", "name": "generated", - "tags": null, "severity": "error", "security_severity_level": "low", - "description": "generated" + "description": "generated", + "tags": null }, "tool": { "name": "generated", diff --git a/clients/GitHub/src/Schema/CodeScanningAlertRuleSummary.php b/clients/GitHub/src/Schema/CodeScanningAlertRuleSummary.php index 0c59b3cfc18..a9306176ede 100644 --- a/clients/GitHub/src/Schema/CodeScanningAlertRuleSummary.php +++ b/clients/GitHub/src/Schema/CodeScanningAlertRuleSummary.php @@ -22,16 +22,6 @@ "type": "string", "description": "The name of the rule used to detect the alert." }, - "tags": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "A set of tags applicable for the rule." - }, "severity": { "enum": [ "none", @@ -63,6 +53,16 @@ "description": { "type": "string", "description": "A short description of the rule used to detect the alert." + }, + "tags": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "A set of tags applicable for the rule." } } }'; @@ -71,22 +71,22 @@ public const SCHEMA_EXAMPLE_DATA = '{ "id": "generated", "name": "generated", - "tags": null, "severity": "error", "security_severity_level": "low", - "description": "generated" + "description": "generated", + "tags": null }'; /** * id: A unique identifier for the rule used to detect the alert. * name: The name of the rule used to detect the alert. - * tags: A set of tags applicable for the rule. * severity: The severity of the alert. * securitySeverityLevel: The security severity of the alert. * description: A short description of the rule used to detect the alert. + * tags: A set of tags applicable for the rule. */ - public function __construct(public string|null $id, public string|null $name, public array|null $tags, public string|null $severity, #[MapFrom('security_severity_level')] - public string|null $securitySeverityLevel, public string|null $description,) + public function __construct(public string|null $id, public string|null $name, public string|null $severity, #[MapFrom('security_severity_level')] + public string|null $securitySeverityLevel, public string|null $description, public array|null $tags,) { } } diff --git a/clients/GitHub/src/Schema/CodeScanningOrganizationAlertItems.php b/clients/GitHub/src/Schema/CodeScanningOrganizationAlertItems.php index e4c8cdc56b2..75448f9f4d5 100644 --- a/clients/GitHub/src/Schema/CodeScanningOrganizationAlertItems.php +++ b/clients/GitHub/src/Schema/CodeScanningOrganizationAlertItems.php @@ -293,16 +293,6 @@ "type": "string", "description": "The name of the rule used to detect the alert." }, - "tags": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "A set of tags applicable for the rule." - }, "severity": { "enum": [ "none", @@ -334,6 +324,16 @@ "description": { "type": "string", "description": "A short description of the rule used to detect the alert." + }, + "tags": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "A set of tags applicable for the rule." } } }, @@ -1030,10 +1030,10 @@ "rule": { "id": "generated", "name": "generated", - "tags": null, "severity": "error", "security_severity_level": "low", - "description": "generated" + "description": "generated", + "tags": null }, "tool": { "name": "generated", diff --git a/clients/GitHub/src/Schema/PullRequestReview.php b/clients/GitHub/src/Schema/PullRequestReview.php index 429ce4fc94f..20d40302aa8 100644 --- a/clients/GitHub/src/Schema/PullRequestReview.php +++ b/clients/GitHub/src/Schema/PullRequestReview.php @@ -28,6 +28,7 @@ "id": { "type": "integer", "description": "Unique identifier of the review", + "format": "int64", "examples": [ 42 ] diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 76ed46dcee1..5ce9cafb163 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -1677,9 +1677,9 @@ paths: "/events": get: summary: List public events - description: We delay the public events feed by five minutes, which means the - most recent event returned by the public events API actually occurred at least - five minutes ago. + description: |- + > [!NOTE] + > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. tags: - activity operationId: activity/list-public-events @@ -3369,7 +3369,9 @@ paths: "/networks/{owner}/{repo}/events": get: summary: List public events for a network of repositories - description: '' + description: |- + > [!NOTE] + > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. tags: - activity operationId: activity/list-public-events-for-repo-network @@ -8421,7 +8423,9 @@ paths: "/orgs/{org}/events": get: summary: List public organization events - description: '' + description: |- + > [!NOTE] + > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. tags: - activity operationId: activity/list-public-org-events @@ -46050,8 +46054,11 @@ paths: "/users/{username}/events": get: summary: List events for the authenticated user - description: If you are authenticated as the given user, you will see your private - events. Otherwise, you'll only see public events. + description: |- + If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. + + > [!NOTE] + > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. tags: - activity operationId: activity/list-events-for-authenticated-user @@ -46082,8 +46089,11 @@ paths: "/users/{username}/events/orgs/{org}": get: summary: List organization events for the authenticated user - description: This is the user's organization dashboard. You must be authenticated - as the user to view this. + description: |- + This is the user's organization dashboard. You must be authenticated as the user to view this. + + > [!NOTE] + > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. tags: - activity operationId: activity/list-org-events-for-authenticated-user @@ -46115,7 +46125,9 @@ paths: "/users/{username}/events/public": get: summary: List public events for a user - description: '' + description: |- + > [!NOTE] + > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. tags: - activity operationId: activity/list-public-events-for-user @@ -46827,9 +46839,12 @@ paths: "/users/{username}/received_events": get: summary: List events received by the authenticated user - description: These are events that you've received by watching repositories - and following users. If you are authenticated as the given user, you will - see private events. Otherwise, you'll only see public events. + description: |- + These are events that you've received by watching repositories and following users. If you are authenticated as the + given user, you will see private events. Otherwise, you'll only see public events. + + > [!NOTE] + > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. tags: - activity operationId: activity/list-received-events-for-user @@ -46860,7 +46875,9 @@ paths: "/users/{username}/received_events/public": get: summary: List public events received by a user - description: '' + description: |- + > [!NOTE] + > This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. tags: - activity operationId: activity/list-received-public-events-for-user @@ -70836,13 +70853,6 @@ components: name: type: string description: The name of the rule used to detect the alert. - tags: - type: - - array - - 'null' - description: A set of tags applicable for the rule. - items: - type: string severity: type: - string @@ -70868,6 +70878,13 @@ components: description: type: string description: A short description of the rule used to detect the alert. + tags: + type: + - array + - 'null' + description: A set of tags applicable for the rule. + items: + type: string code-scanning-analysis-tool-version: type: - string @@ -86470,6 +86487,7 @@ components: id: description: Unique identifier of the review type: integer + format: int64 examples: - 42 node_id: