Skip to content

Commit a238a9f

Browse files
authored
[GitHubEnterpriseCloud] Update to 1.1.4-1f7c44311545c63d8e394ecba08135b4 from 1.1.4-6ceaf78da716bf4646323c82ace95d60
Detected Schema changes: ERROR: error: Error thrown when comparing: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory ERROR: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [217781:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [217783:11] ERROR: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [217756:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [217758:11]
1 parent f9878ec commit a238a9f

File tree

16 files changed

+124
-47
lines changed

16 files changed

+124
-47
lines changed

etc/openapi-client-generator.state

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "6ceaf78da716bf4646323c82ace95d60",
2+
"specHash": "1f7c44311545c63d8e394ecba08135b4",
33
"generatedFiles": {
44
"files": [
55
{
@@ -636,7 +636,7 @@
636636
},
637637
{
638638
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetBypassActor.php",
639-
"hash": "bd1097f0a8ba04462f9f09e04ee74eab"
639+
"hash": "07038644600ab6711e90bb203a59c0a4"
640640
},
641641
{
642642
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetConditions.php",
@@ -716,7 +716,7 @@
716716
},
717717
{
718718
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php",
719-
"hash": "2ac31d482a325038d999acfea7dda14b"
719+
"hash": "cee095bafd88e44abfd1c31b8538f502"
720720
},
721721
{
722722
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GroupMapping.php",
@@ -992,7 +992,7 @@
992992
},
993993
{
994994
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningCodeqlDatabase.php",
995-
"hash": "faabf374f96e11f030cf15898942a40e"
995+
"hash": "00e3c4d9c9ebde435c00363de441a7e8"
996996
},
997997
{
998998
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningDefaultSetup.php",
@@ -1160,7 +1160,7 @@
11601160
},
11611161
{
11621162
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DeploymentBranchPolicy.php",
1163-
"hash": "928bb49c122c81bf052890aab6f88f62"
1163+
"hash": "eb9d8a11c1645464d3e5e5b9a51c14bb"
11641164
},
11651165
{
11661166
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DeploymentBranchPolicyNamePattern.php",
@@ -5132,11 +5132,11 @@
51325132
},
51335133
{
51345134
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php",
5135-
"hash": "1fb247c258f67bd189ea947ad8e1d287"
5135+
"hash": "74c50673a8ffd8f702d173f9d439ec1a"
51365136
},
51375137
{
51385138
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php",
5139-
"hash": "fbf4c709bf54e6af2805d213a818f8d7"
5139+
"hash": "8c760aa50ee4aedc8312e58bb9dd22bb"
51405140
},
51415141
{
51425142
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php",
@@ -5568,7 +5568,7 @@
55685568
},
55695569
{
55705570
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/ListDeploymentBranchPolicies\/Response\/ApplicationJson\/Ok.php",
5571-
"hash": "3ec2a2046c8f4ac9ab0bc15dc197fc3c"
5571+
"hash": "d4655e0b6fc7c3ecdee4cb524848064b"
55725572
},
55735573
{
55745574
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/GetAllDeploymentProtectionRules\/Response\/ApplicationJson\/Ok.php",
@@ -5856,11 +5856,11 @@
58565856
},
58575857
{
58585858
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php",
5859-
"hash": "0ebc62e36ac91981afe333e20c2f8ceb"
5859+
"hash": "1b29268ee9613000559b734637688436"
58605860
},
58615861
{
58625862
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php",
5863-
"hash": "9b7e2d2e72886420090561912b965cf6"
5863+
"hash": "eb1ede278a526534ee5c6e50ae001209"
58645864
},
58655865
{
58665866
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php",
@@ -14156,15 +14156,15 @@
1415614156
},
1415714157
{
1415814158
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php",
14159-
"hash": "6f1de03245a6ed2ca6438d9e65d334ae"
14159+
"hash": "bc73420a231649627778d938db1e55a1"
1416014160
},
1416114161
{
1416214162
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php",
14163-
"hash": "1796878ec5b5b516125f0489b0da9c5e"
14163+
"hash": "205bacfea8eaf93a2dc65f3f8c180537"
1416414164
},
1416514165
{
1416614166
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php",
14167-
"hash": "5a387bbfca99f03dd3b1b5c649fd944b"
14167+
"hash": "02314078fd5d1daec637d14671e31449"
1416814168
},
1416914169
{
1417014170
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/SecurityAdvisories\/CreateRepositoryAdvisoryCveRequest\/Response\/ApplicationJson\/Accepted.php",
@@ -30144,11 +30144,11 @@
3014430144
},
3014530145
{
3014630146
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Environments\/EnvironmentName\/DeploymentBranchPolicies.php",
30147-
"hash": "a13ebe3fc1406d6de6935e61f52eaef7"
30147+
"hash": "0e4c4e4caa05aaccec6019987f24ad66"
3014830148
},
3014930149
{
3015030150
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Environments\/EnvironmentName\/DeploymentBranchPolicies\/BranchPolicyId.php",
30151-
"hash": "4a9c4f0b9ef1b7b57e9c980dade8cef0"
30151+
"hash": "fbd9edb0228b896acfba9c57f164741a"
3015230152
},
3015330153
{
3015430154
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Environments\/EnvironmentName\/DeploymentProtectionRules.php",
@@ -31512,7 +31512,7 @@
3151231512
},
3151331513
{
3151431514
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DeploymentBranchPolicyNamePatternWithType.php",
31515-
"hash": "7f6e1dfbf34028264ba9f0cc753775e7"
31515+
"hash": "fba134c1aacaf9c8be23fd6d360140da"
3151631516
},
3151731517
{
3151831518
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookUserCreated.php",

src/Internal/Hydrator/Operation/Repos/Owner/Repo/Environments/EnvironmentName/DeploymentBranchPolicies.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
123123
$properties['name'] = $value;
124124

125125
after_name:
126+
127+
$value = $payload['type'] ?? null;
128+
129+
if ($value === null) {
130+
$properties['type'] = null;
131+
goto after_type;
132+
}
133+
134+
$properties['type'] = $value;
135+
136+
after_type:
126137
} catch (Throwable $exception) {
127138
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy', $exception, stack: $this->hydrationStack);
128139
}
@@ -283,6 +294,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
283294

284295
after_name: $result['name'] = $name;
285296

297+
$type = $object->type;
298+
299+
if ($type === null) {
300+
goto after_type;
301+
}
302+
303+
after_type: $result['type'] = $type;
304+
286305
return $result;
287306
}
288307

src/Internal/Hydrator/Operation/Repos/Owner/Repo/Environments/EnvironmentName/DeploymentBranchPolicies/BranchPolicyId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
8080
$properties['name'] = $value;
8181

8282
after_name:
83+
84+
$value = $payload['type'] ?? null;
85+
86+
if ($value === null) {
87+
$properties['type'] = null;
88+
goto after_type;
89+
}
90+
91+
$properties['type'] = $value;
92+
93+
after_type:
8394
} catch (Throwable $exception) {
8495
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy', $exception, stack: $this->hydrationStack);
8596
}
@@ -218,6 +229,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
218229

219230
after_name: $result['name'] = $name;
220231

232+
$type = $object->type;
233+
234+
if ($type === null) {
235+
goto after_type;
236+
}
237+
238+
after_type: $result['type'] = $type;
239+
221240
return $result;
222241
}
223242

src/Schema/CodeScanningCodeqlDatabase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
"string",
226226
"null"
227227
],
228-
"description": "The commit SHA of the CodeQL databases repository at time of database creation."
228+
"description": "The commit SHA of the repository at the time the CodeQL database was created."
229229
}
230230
},
231231
"description": "A CodeQL database."
@@ -277,7 +277,7 @@
277277
* createdAt: The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
278278
* updatedAt: The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
279279
* url: The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property.
280-
* commitOid: The commit SHA of the CodeQL databases repository at time of database creation.
280+
* commitOid: The commit SHA of the repository at the time the CodeQL database was created.
281281
*/
282282
public function __construct(public int $id, public string $name, public string $language, public Schema\SimpleUser $uploader, #[MapFrom('content_type')]
283283
public string $contentType, public int $size, #[MapFrom('created_at')]

src/Schema/DeploymentBranchPolicy.php

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"properties": {
1515
"id": {
1616
"type": "integer",
17-
"description": "The unique identifier of the branch policy.",
17+
"description": "The unique identifier of the branch or tag policy.",
1818
"examples": [
1919
361471
2020
]
@@ -27,28 +27,41 @@
2727
},
2828
"name": {
2929
"type": "string",
30-
"description": "The name pattern that branches must match in order to deploy to the environment.",
30+
"description": "The name pattern that branches or tags must match in order to deploy to the environment.",
3131
"examples": [
3232
"release\\/*"
3333
]
34+
},
35+
"type": {
36+
"enum": [
37+
"branch",
38+
"tag"
39+
],
40+
"type": "string",
41+
"description": "Whether this rule targets a branch or tag.",
42+
"examples": [
43+
"branch"
44+
]
3445
}
3546
},
36-
"description": "Details of a deployment branch policy."
47+
"description": "Details of a deployment branch or tag policy."
3748
}';
3849
public const SCHEMA_TITLE = 'Deployment branch policy';
39-
public const SCHEMA_DESCRIPTION = 'Details of a deployment branch policy.';
50+
public const SCHEMA_DESCRIPTION = 'Details of a deployment branch or tag policy.';
4051
public const SCHEMA_EXAMPLE_DATA = '{
4152
"id": 361471,
4253
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
43-
"name": "release\\/*"
54+
"name": "release\\/*",
55+
"type": "branch"
4456
}';
4557

4658
/**
47-
* id: The unique identifier of the branch policy.
48-
* name: The name pattern that branches must match in order to deploy to the environment.
59+
* id: The unique identifier of the branch or tag policy.
60+
* name: The name pattern that branches or tags must match in order to deploy to the environment.
61+
* type: Whether this rule targets a branch or tag.
4962
*/
5063
public function __construct(public int|null $id, #[MapFrom('node_id')]
51-
public string|null $nodeId, public string|null $name,)
64+
public string|null $nodeId, public string|null $name, public string|null $type,)
5265
{
5366
}
5467
}

src/Schema/DeploymentBranchPolicyNamePatternWithType.php

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,47 @@
77
final readonly class DeploymentBranchPolicyNamePatternWithType
88
{
99
public const SCHEMA_JSON = '{
10-
"title": "Deployment branch policy name pattern",
10+
"title": "Deployment branch and tag policy name pattern",
1111
"required": [
1212
"name"
1313
],
1414
"type": "object",
1515
"properties": {
1616
"name": {
1717
"type": "string",
18-
"description": "The name pattern that branches must match in order to deploy to the environment.\\n\\nWildcard characters will not match `\\/`. For example, to match branches that begin with `release\\/` and contain an additional single slash, use `release\\/*\\/*`.\\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https:\\/\\/ruby-doc.org\\/core-2.5.1\\/File.html#method-c-fnmatch).",
18+
"description": "The name pattern that branches or tags must match in order to deploy to the environment.\\n\\nWildcard characters will not match `\\/`. For example, to match branches that begin with `release\\/` and contain an additional single slash, use `release\\/*\\/*`.\\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https:\\/\\/ruby-doc.org\\/core-2.5.1\\/File.html#method-c-fnmatch).",
1919
"examples": [
2020
"release\\/*"
2121
]
22+
},
23+
"type": {
24+
"enum": [
25+
"branch",
26+
"tag"
27+
],
28+
"type": "string",
29+
"description": "Whether this rule targets a branch or tag",
30+
"examples": [
31+
"branch"
32+
]
2233
}
2334
}
2435
}';
25-
public const SCHEMA_TITLE = 'Deployment branch policy name pattern';
36+
public const SCHEMA_TITLE = 'Deployment branch and tag policy name pattern';
2637
public const SCHEMA_DESCRIPTION = '';
2738
public const SCHEMA_EXAMPLE_DATA = '{
28-
"name": "release\\/*"
39+
"name": "release\\/*",
40+
"type": "branch"
2941
}';
3042

3143
/**
32-
* name: The name pattern that branches must match in order to deploy to the environment.
44+
* name: The name pattern that branches or tags must match in order to deploy to the environment.
3345
3446
Wildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*`.
3547
For more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).
48+
* type: Whether this rule targets a branch or tag
3649
*/
37-
public function __construct(public string $name)
50+
public function __construct(public string $name, public string|null $type)
3851
{
3952
}
4053
}

src/Schema/Operations/Repos/ListDeploymentBranchPolicies/Response/ApplicationJson/Ok.php

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"properties": {
3131
"id": {
3232
"type": "integer",
33-
"description": "The unique identifier of the branch policy.",
33+
"description": "The unique identifier of the branch or tag policy.",
3434
"examples": [
3535
361471
3636
]
@@ -43,13 +43,24 @@
4343
},
4444
"name": {
4545
"type": "string",
46-
"description": "The name pattern that branches must match in order to deploy to the environment.",
46+
"description": "The name pattern that branches or tags must match in order to deploy to the environment.",
4747
"examples": [
4848
"release\\/*"
4949
]
50+
},
51+
"type": {
52+
"enum": [
53+
"branch",
54+
"tag"
55+
],
56+
"type": "string",
57+
"description": "Whether this rule targets a branch or tag.",
58+
"examples": [
59+
"branch"
60+
]
5061
}
5162
},
52-
"description": "Details of a deployment branch policy."
63+
"description": "Details of a deployment branch or tag policy."
5364
}
5465
}
5566
}
@@ -62,12 +73,14 @@
6273
{
6374
"id": 361471,
6475
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
65-
"name": "release\\/*"
76+
"name": "release\\/*",
77+
"type": "branch"
6678
},
6779
{
6880
"id": 361471,
6981
"node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
70-
"name": "release\\/*"
82+
"name": "release\\/*",
83+
"type": "branch"
7184
}
7285
]
7386
}';

src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"properties": {
5252
"actor_id": {
5353
"type": "integer",
54-
"description": "The ID of the actor that can bypass a ruleset"
54+
"description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`."
5555
},
5656
"actor_type": {
5757
"enum": [

src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"properties": {
5151
"actor_id": {
5252
"type": "integer",
53-
"description": "The ID of the actor that can bypass a ruleset"
53+
"description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`."
5454
},
5555
"actor_type": {
5656
"enum": [

src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"properties": {
4848
"actor_id": {
4949
"type": "integer",
50-
"description": "The ID of the actor that can bypass a ruleset"
50+
"description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`."
5151
},
5252
"actor_type": {
5353
"enum": [

0 commit comments

Comments
 (0)