Skip to content

Commit 9270952

Browse files
authored
Merge pull request #757 from php-api-clients/GitHubEnterprise-3.9/from-1.1.4-62ea669619da72a8d1d18c55da7c930c-from-1.1.4-62ea669619da72a8d1d18c55da7c930c
2 parents b502cd6 + 242f95d commit 9270952

File tree

12 files changed

+98
-37
lines changed

12 files changed

+98
-37
lines changed

clients/GitHubEnterprise-3.9/etc/openapi-client-generator.state

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "f42c44cfeb1393d6f9230ebb01f15184",
2+
"specHash": "62ea669619da72a8d1d18c55da7c930c",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5624,11 +5624,11 @@
56245624
},
56255625
{
56265626
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/ClientInterface.php",
5627-
"hash": "6281ace745568e47e22ae3d5adec8bff"
5627+
"hash": "9c7017562db7646c41e9d3ba3cc9a169"
56285628
},
56295629
{
56305630
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Client.php",
5631-
"hash": "a7e69df27869cfd798a6294ee8e3261c"
5631+
"hash": "c6f98a56df7631ea7d701909c7c9bbc5"
56325632
},
56335633
{
56345634
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/OperationsInterface.php",
@@ -5640,7 +5640,7 @@
56405640
},
56415641
{
56425642
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
5643-
"hash": "bee41c46406cfeef9641c5613821eacc"
5643+
"hash": "d17d927cdabc9716e2b68354178dd512"
56445644
},
56455645
{
56465646
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Operation\/Apps.php",
@@ -5664,7 +5664,7 @@
56645664
},
56655665
{
56665666
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Operation\/CodeScanning.php",
5667-
"hash": "803cd95caf029958a80f429b624982be"
5667+
"hash": "b8cc0d6a5dd658182ce06c19431bc21b"
56685668
},
56695669
{
56705670
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Operation\/SecretScanning.php",
@@ -5704,7 +5704,7 @@
57045704
},
57055705
{
57065706
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Operation\/Orgs.php",
5707-
"hash": "5f8b1fa0879ed9e0ef75876ae7743b54"
5707+
"hash": "0388dc9c730d4ba54d433852aeff15e1"
57085708
},
57095709
{
57105710
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Operation\/Oidc.php",
@@ -5732,7 +5732,7 @@
57325732
},
57335733
{
57345734
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Operation\/Repos.php",
5735-
"hash": "d8b1fb8c7516c33b6a1b42ca0258c101"
5735+
"hash": "9361edd9bffd0b1daa2d868b7e7646df"
57365736
},
57375737
{
57385738
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -19640,11 +19640,11 @@
1964019640
},
1964119641
{
1964219642
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/UpdateDefaultSetup.php",
19643-
"hash": "f4363ce0d7a2aff04c715824998fab7f"
19643+
"hash": "2d51fdc15e260eefabb03261d41b7590"
1964419644
},
1964519645
{
1964619646
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/UpdateDefaultSetup.php",
19647-
"hash": "20c63b2e447f8ef5cedd5823792d2615"
19647+
"hash": "6c365eb583cf6112b9464b8d544d49eb"
1964819648
},
1964919649
{
1965019650
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/UpdateDefaultSetupTest.php",
@@ -20416,15 +20416,15 @@
2041620416
},
2041720417
{
2041820418
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/CreateDeploymentBranchPolicy.php",
20419-
"hash": "50b4a56b5a93f60a65abc6c066b36405"
20419+
"hash": "389af34b5f29f04340176076089f89dd"
2042020420
},
2042120421
{
2042220422
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/CreateDeploymentBranchPolicy.php",
2042320423
"hash": "874adaaf75545c8ed100680d5b7f4488"
2042420424
},
2042520425
{
2042620426
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/CreateDeploymentBranchPolicyTest.php",
20427-
"hash": "cbb4fb7f880b2cbf85c13dcc33bd6810"
20427+
"hash": "cda0e8cce279d3840bd6eff06f327ecf"
2042820428
},
2042920429
{
2043020430
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetDeploymentBranchPolicy.php",
@@ -26000,7 +26000,7 @@
2600026000
},
2600126001
{
2600226002
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/CodeScanning.php",
26003-
"hash": "9dbc1175f59c011acd804ee3660fa88f"
26003+
"hash": "734975cd563ed1388d3eeef6587bc30e"
2600426004
},
2600526005
{
2600626006
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Issues.php",
@@ -26256,7 +26256,7 @@
2625626256
},
2625726257
{
2625826258
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Six.php",
26259-
"hash": "3be5b3c693b4eb5d6bb14a958bf70b2f"
26259+
"hash": "a252ddf422be6be257cb3a8852a07b9a"
2626026260
},
2626126261
{
2626226262
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Three.php",
@@ -28297,6 +28297,10 @@
2829728297
{
2829828298
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Schema\/EnterpriseWebhooks.php",
2829928299
"hash": "2aedd37b6a7cd18fbc88b36fd38d5e75"
28300+
},
28301+
{
28302+
"name": ".\/clients\/GitHubEnterprise-3.9\/etc\/..\/\/src\/\/Schema\/DeploymentBranchPolicyNamePatternWithType.php",
28303+
"hash": "3a11a7271619d6891e96054c5595a690"
2830028304
}
2830128305
]
2830228306
},

clients/GitHubEnterprise-3.9/src/Client.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

clients/GitHubEnterprise-3.9/src/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

clients/GitHubEnterprise-3.9/src/Internal/Operation/CodeScanning/UpdateDefaultSetup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function createResponse(ResponseInterface $response): Schema\EmptyObject|
6767

6868
return $this->hydrator->hydrateObject(Schema\CodeScanningDefaultSetupUpdateResponse::class, $body);
6969
/**
70-
* Response if GitHub Advanced Security is not enabled for this repository
70+
* Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository
7171
**/
7272

7373
case 403:

clients/GitHubEnterprise-3.9/src/Internal/Operation/Repos/CreateDeploymentBranchPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(private readonly SchemaValidator $requestSchemaValid
4040

4141
public function createRequest(array $data): RequestInterface
4242
{
43-
$this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\DeploymentBranchPolicyNamePattern::SCHEMA_JSON, \cebe\openapi\spec\Schema::class));
43+
$this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\DeploymentBranchPolicyNamePatternWithType::SCHEMA_JSON, \cebe\openapi\spec\Schema::class));
4444

4545
return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{environment_name}'], [$this->owner, $this->repo, $this->environmentName], self::PATH), ['Content-Type' => 'application/json'], json_encode($data));
4646
}

clients/GitHubEnterprise-3.9/src/Internal/Operator/CodeScanning/UpdateDefaultSetup.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace ApiClients\Client\GitHubEnterprise\Internal\Operator\CodeScanning;
66

77
use ApiClients\Client\GitHubEnterprise\Internal;
8+
use ApiClients\Client\GitHubEnterprise\Schema;
89
use ApiClients\Client\GitHubEnterprise\Schema\CodeScanningDefaultSetupUpdateResponse;
910
use ApiClients\Client\GitHubEnterprise\Schema\EmptyObject;
1011
use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface;
@@ -25,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2526
{
2627
}
2728

28-
/** @return */
29+
/** @return Schema\EmptyObject|Schema\CodeScanningDefaultSetupUpdateResponse */
2930
public function call(string $owner, string $repo, array $params): EmptyObject|CodeScanningDefaultSetupUpdateResponse|array
3031
{
3132
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\CodeScanning\UpdateDefaultSetup($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo);

clients/GitHubEnterprise-3.9/src/Internal/Router/Patch/CodeScanning.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace ApiClients\Client\GitHubEnterprise\Internal\Router\Patch;
66

77
use ApiClients\Client\GitHubEnterprise\Internal;
8+
use ApiClients\Client\GitHubEnterprise\Schema;
89
use ApiClients\Client\GitHubEnterprise\Schema\CodeScanningAlert;
910
use ApiClients\Client\GitHubEnterprise\Schema\CodeScanningDefaultSetupUpdateResponse;
1011
use ApiClients\Client\GitHubEnterprise\Schema\EmptyObject;
@@ -21,7 +22,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri
2122
{
2223
}
2324

24-
/** @return */
25+
/** @return Schema\EmptyObject|Schema\CodeScanningDefaultSetupUpdateResponse */
2526
public function updateDefaultSetup(array $params): EmptyObject|CodeScanningDefaultSetupUpdateResponse|array
2627
{
2728
$arguments = [];

clients/GitHubEnterprise-3.9/src/Internal/Router/Patch/Six.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(private Routers $routers)
3333
{
3434
}
3535

36-
/** @return |array{code:int} */
36+
/** @return |array{code:int}|Schema\EmptyObject|Schema\CodeScanningDefaultSetupUpdateResponse */
3737
public function call(string $call, array $params, array $pathChunks): LdapMappingTeam|LdapMappingUser|RunnerGroupsEnterprise|RunnerGroupsOrg|WebhookConfig|ExternalGroup|CheckRun|CheckSuitePreference|EmptyObject|CodeScanningDefaultSetupUpdateResponse|CommitComment|Hook|RepositoryInvitation|Issue|BasicError|Label|Milestone|RepositoryPreReceiveHook|PullRequest|Release|array
3838
{
3939
if ($pathChunks[0] === '') {

clients/GitHubEnterprise-3.9/src/Operation/CodeScanning.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function getDefaultSetup(string $owner, string $repo): CodeScanningDefaul
111111
return $this->operators->codeScanning👷GetDefaultSetup()->call($owner, $repo);
112112
}
113113

114-
/** @return */
114+
/** @return Schema\EmptyObject|Schema\CodeScanningDefaultSetupUpdateResponse */
115115
public function updateDefaultSetup(string $owner, string $repo, array $params): EmptyObject|CodeScanningDefaultSetupUpdateResponse|array
116116
{
117117
return $this->operators->codeScanning👷UpdateDefaultSetup()->call($owner, $repo, $params);
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ApiClients\Client\GitHubEnterprise\Schema;
6+
7+
final readonly class DeploymentBranchPolicyNamePatternWithType
8+
{
9+
public const SCHEMA_JSON = '{
10+
"title": "Deployment branch policy name pattern",
11+
"required": [
12+
"name"
13+
],
14+
"type": "object",
15+
"properties": {
16+
"name": {
17+
"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).",
19+
"examples": [
20+
"release\\/*"
21+
]
22+
}
23+
}
24+
}';
25+
public const SCHEMA_TITLE = 'Deployment branch policy name pattern';
26+
public const SCHEMA_DESCRIPTION = '';
27+
public const SCHEMA_EXAMPLE_DATA = '{
28+
"name": "release\\/*"
29+
}';
30+
31+
/**
32+
* name: The name pattern that branches must match in order to deploy to the environment.
33+
34+
Wildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*`.
35+
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).
36+
*/
37+
public function __construct(public string $name)
38+
{
39+
}
40+
}

0 commit comments

Comments
 (0)