Skip to content

Commit 2698cfd

Browse files
authored
[GitHubEnterpriseCloud] Update to 1.1.4-a7294f495113d13ce3b2a7e9be36e697 from 1.1.4-069f6f8cddd6137eb77177187c492ecb
Detected Schema changes: starting work. Building original model for commit f52b7e {"time":"2023-12-15T16:33:04.054824954Z","level":"ERROR","msg":"unable to open the rolodex file, check specification references and base path","file":"/__w/github-root/github-root/server-statistics-actions.yaml","error":"open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory"} {"time":"2023-12-15T16:33:04.054945388Z","level":"ERROR","msg":"unable to open the rolodex file, check specification references and base path","file":"/__w/github-root/github-root/server-statistics-packages.yaml","error":"open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory"} {"time":"2023-12-15T16:33:05.212279367Z","level":"ERROR","msg":"unable to open the rolodex file, check specification references and base path","file":"/__w/github-root/github-root/server-statistics-actions.yaml","error":"open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory"} {"time":"2023-12-15T16:33:05.212389461Z","level":"ERROR","msg":"unable to open the rolodex file, check specification references and base path","file":"/__w/github-root/github-root/server-statistics-packages.yaml","error":"open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory"} SPEC: extracted 1 commits from history SUCCESS: No changes detected DONE: completed WARNING: warnings reported during processing ⚠️ Error thrown when comparing: component 'server-statistics-actions.yaml' does not exist in the specification
1 parent a8721d5 commit 2698cfd

File tree

6 files changed

+58
-45
lines changed

6 files changed

+58
-45
lines changed

etc/openapi-client-generator.state

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "069f6f8cddd6137eb77177187c492ecb",
2+
"specHash": "a7294f495113d13ce3b2a7e9be36e697",
33
"generatedFiles": {
44
"files": [
55
{
@@ -308,7 +308,7 @@
308308
},
309309
{
310310
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningOrganizationAlertItems.php",
311-
"hash": "8770a01cbbce5a4a1794a86e1387cfd3"
311+
"hash": "841351f394066117d8c917c0267a7d3e"
312312
},
313313
{
314314
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/EnterpriseSecurityAnalysisSettings.php",
@@ -948,11 +948,11 @@
948948
},
949949
{
950950
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRuleSummary.php",
951-
"hash": "1edf7782cb286642f1da0737cc2e043a"
951+
"hash": "9f9e0ecb5585fc172d0c0202843cd1cf"
952952
},
953953
{
954954
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertItems.php",
955-
"hash": "4506010d78298ace10741750db1bef68"
955+
"hash": "3cb33cb735863912f486900d1019db36"
956956
},
957957
{
958958
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningAlert.php",
@@ -5176,7 +5176,7 @@
51765176
},
51775177
{
51785178
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/AddOrUpdateProjectPermissionsInOrg\/Request\/ApplicationJson.php",
5179-
"hash": "58fd8d11db5948d74320e20a137afd4a"
5179+
"hash": "55b3ca368e4c4176145538ec28eeffb7"
51805180
},
51815181
{
51825182
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/AddOrUpdateRepoPermissionsInOrg\/Request\/ApplicationJson.php",
@@ -5968,7 +5968,7 @@
59685968
},
59695969
{
59705970
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/AddOrUpdateProjectPermissionsLegacy\/Request\/ApplicationJson.php",
5971-
"hash": "1f05660fe40bcc1b27d3204cc38eed87"
5971+
"hash": "9f83bd18317d4b077e250f3d25193eb8"
59725972
},
59735973
{
59745974
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/AddOrUpdateRepoPermissionsLegacy\/Request\/ApplicationJson.php",

src/Schema/CodeScanningAlertItems.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,20 @@
315315
],
316316
"description": "The severity of the alert."
317317
},
318+
"security_severity_level": {
319+
"enum": [
320+
"low",
321+
"medium",
322+
"high",
323+
"critical",
324+
null
325+
],
326+
"type": [
327+
"string",
328+
"null"
329+
],
330+
"description": "The security severity of the alert."
331+
},
318332
"description": {
319333
"type": "string",
320334
"description": "A short description of the rule used to detect the alert."
@@ -471,6 +485,7 @@
471485
"name": "generated",
472486
"tags": null,
473487
"severity": "error",
488+
"security_severity_level": "low",
474489
"description": "generated"
475490
},
476491
"tool": {

src/Schema/CodeScanningAlertRuleSummary.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace ApiClients\Client\GitHubEnterpriseCloud\Schema;
66

7+
use EventSauce\ObjectHydrator\MapFrom;
8+
79
final readonly class CodeScanningAlertRuleSummary
810
{
911
public const SCHEMA_JSON = '{
@@ -44,6 +46,20 @@
4446
],
4547
"description": "The severity of the alert."
4648
},
49+
"security_severity_level": {
50+
"enum": [
51+
"low",
52+
"medium",
53+
"high",
54+
"critical",
55+
null
56+
],
57+
"type": [
58+
"string",
59+
"null"
60+
],
61+
"description": "The security severity of the alert."
62+
},
4763
"description": {
4864
"type": "string",
4965
"description": "A short description of the rule used to detect the alert."
@@ -57,6 +73,7 @@
5773
"name": "generated",
5874
"tags": null,
5975
"severity": "error",
76+
"security_severity_level": "low",
6077
"description": "generated"
6178
}';
6279

@@ -65,9 +82,11 @@
6582
* name: The name of the rule used to detect the alert.
6683
* tags: A set of tags applicable for the rule.
6784
* severity: The severity of the alert.
85+
* securitySeverityLevel: The security severity of the alert.
6886
* description: A short description of the rule used to detect the alert.
6987
*/
70-
public function __construct(public string|null $id, public string|null $name, public array|null $tags, public string|null $severity, public string|null $description)
88+
public function __construct(public string|null $id, public string|null $name, public array|null $tags, public string|null $severity, #[MapFrom('security_severity_level')]
89+
public string|null $securitySeverityLevel, public string|null $description,)
7190
{
7291
}
7392
}

src/Schema/CodeScanningOrganizationAlertItems.php

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,16 @@
292292
"type": "string",
293293
"description": "The name of the rule used to detect the alert."
294294
},
295+
"tags": {
296+
"type": [
297+
"array",
298+
"null"
299+
],
300+
"items": {
301+
"type": "string"
302+
},
303+
"description": "A set of tags applicable for the rule."
304+
},
295305
"severity": {
296306
"enum": [
297307
"none",
@@ -323,34 +333,6 @@
323333
"description": {
324334
"type": "string",
325335
"description": "A short description of the rule used to detect the alert."
326-
},
327-
"full_description": {
328-
"type": "string",
329-
"description": "description of the rule used to detect the alert."
330-
},
331-
"tags": {
332-
"type": [
333-
"array",
334-
"null"
335-
],
336-
"items": {
337-
"type": "string"
338-
},
339-
"description": "A set of tags applicable for the rule."
340-
},
341-
"help": {
342-
"type": [
343-
"string",
344-
"null"
345-
],
346-
"description": "Detailed documentation for the rule as GitHub Flavored Markdown."
347-
},
348-
"help_uri": {
349-
"type": [
350-
"string",
351-
"null"
352-
],
353-
"description": "A link to the documentation for the rule used to detect the alert."
354336
}
355337
}
356338
},
@@ -1045,13 +1027,10 @@
10451027
"rule": {
10461028
"id": "generated",
10471029
"name": "generated",
1030+
"tags": null,
10481031
"severity": "error",
10491032
"security_severity_level": "low",
1050-
"description": "generated",
1051-
"full_description": "generated",
1052-
"tags": null,
1053-
"help": "generated",
1054-
"help_uri": "generated"
1033+
"description": "generated"
10551034
},
10561035
"tool": {
10571036
"name": "generated",
@@ -1176,7 +1155,7 @@ public function __construct(public int $number, #[MapFrom('created_at')]
11761155
public Schema\SimpleUser|null $dismissedBy, #[MapFrom('dismissed_at')]
11771156
public string|null $dismissedAt, #[MapFrom('dismissed_reason')]
11781157
public string|null $dismissedReason, #[MapFrom('dismissed_comment')]
1179-
public string|null $dismissedComment, public Schema\CodeScanningAlertRule $rule, public Schema\CodeScanningAnalysisTool $tool, #[MapFrom('most_recent_instance')]
1158+
public string|null $dismissedComment, public Schema\CodeScanningAlertRuleSummary $rule, public Schema\CodeScanningAnalysisTool $tool, #[MapFrom('most_recent_instance')]
11801159
public Schema\CodeScanningAlertInstance $mostRecentInstance, public Schema\SimpleRepository $repository,)
11811160
{
11821161
}

src/Schema/Teams/AddOrUpdateProjectPermissionsInOrg/Request/ApplicationJson.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"admin"
2020
],
2121
"type": "string",
22-
"description": "The permission to grant to the team for this project. Default: the team\'s `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you\'ll need to set `Content-Length` to zero when calling this endpoint. For more information, see \\"[HTTP verbs](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/rest\\/overview\\/resources-in-the-rest-api#http-verbs).\\""
22+
"description": "The permission to grant to the team for this project. Default: the team\'s `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you\'ll need to set `Content-Length` to zero when calling this endpoint. For more information, see \\"[HTTP method](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/rest\\/guides\\/getting-started-with-the-rest-api#http-method).\\""
2323
}
2424
}
2525
}';
@@ -30,7 +30,7 @@
3030
}';
3131

3232
/**
33-
* permission: The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/enterprise-cloud@latest//rest/overview/resources-in-the-rest-api#http-verbs)."
33+
* permission: The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)."
3434
*/
3535
public function __construct(public string|null $permission)
3636
{

src/Schema/Teams/AddOrUpdateProjectPermissionsLegacy/Request/ApplicationJson.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"admin"
1717
],
1818
"type": "string",
19-
"description": "The permission to grant to the team for this project. Default: the team\'s `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you\'ll need to set `Content-Length` to zero when calling this endpoint. For more information, see \\"[HTTP verbs](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/rest\\/overview\\/resources-in-the-rest-api#http-verbs).\\""
19+
"description": "The permission to grant to the team for this project. Default: the team\'s `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you\'ll need to set `Content-Length` to zero when calling this endpoint. For more information, see \\"[HTTP method](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/rest\\/guides\\/getting-started-with-the-rest-api#http-method).\\""
2020
}
2121
}
2222
}';
@@ -27,7 +27,7 @@
2727
}';
2828

2929
/**
30-
* permission: The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/enterprise-cloud@latest//rest/overview/resources-in-the-rest-api#http-verbs)."
30+
* permission: The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)."
3131
*/
3232
public function __construct(public string|null $permission)
3333
{

0 commit comments

Comments
 (0)