Skip to content

Commit 4450f2c

Browse files
authored
Merge pull request #917 from php-api-clients/GitHubAE/from-1.1.4-e5bec81388da5f745e268877188ddc15-from-1.1.4-e5bec81388da5f745e268877188ddc15
2 parents d525ef7 + aa45ffe commit 4450f2c

File tree

299 files changed

+1393
-6673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+1393
-6673
lines changed

clients/GitHubAE/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -2954,6 +2954,26 @@ $client->operations()->activity()->getThread( thread_id: 9,
29542954
You can find more about this operation over at the [API method documentation](https://docs.github.com/github-ae@latest/rest/activity/notifications#get-a-thread).
29552955

29562956

2957+
### activity/mark-thread-as-done
2958+
2959+
Mark a thread as done
2960+
2961+
Using the `call` method:
2962+
```php
2963+
$client->call('DELETE /notifications/threads/{thread_id}', [
2964+
'thread_id' => 9,
2965+
]);
2966+
```
2967+
2968+
Operations method:
2969+
```php
2970+
$client->operations()->activity()->markThreadAsDone( thread_id: 9,
2971+
);
2972+
```
2973+
2974+
You can find more about this operation over at the [API method documentation](https://docs.github.com/github-ae@latest/rest/activity/notifications#mark-a-thread-as-done).
2975+
2976+
29572977
### activity/mark-thread-as-read
29582978

29592979
Mark a thread as read

clients/GitHubAE/etc/openapi-client-generator.state

+295-331
Large diffs are not rendered by default.

clients/GitHubAE/src/Internal/Hydrator/WebHook/BranchProtectionRule.php

-51
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use ApiClients\Client\GitHubAE\Schema\LicenseSimple;
99
use ApiClients\Client\GitHubAE\Schema\OrganizationSimpleWebhooks;
1010
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks;
11-
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties;
1211
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\Permissions;
1312
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\TemplateRepository;
1413
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\TemplateRepository\Owner;
@@ -87,7 +86,6 @@ public function hydrateObject(string $className, array $payload): object
8786
'ApiClients\Client\GitHubAE\Schema\WebhookBranchProtectionRuleEdited\Changes\RequiredStatusChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️RequiredStatusChecks($payload),
8887
'ApiClients\Client\GitHubAE\Schema\WebhookBranchProtectionRuleEdited\Changes\RequiredStatusChecksEnforcementLevel' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️RequiredStatusChecksEnforcementLevel($payload),
8988
'ApiClients\Client\GitHubAE\Schema\WebhookBranchProtectionRuleEdited\Rule' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Rule($payload),
90-
'ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
9189
'ApiClients\Client\GitHubAE\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
9290
'ApiClients\Client\GitHubAE\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
9391
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -1321,26 +1319,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Re
13211319

13221320
after_topics:
13231321

1324-
$value = $payload['custom_properties'] ?? null;
1325-
1326-
if ($value === null) {
1327-
$properties['customProperties'] = null;
1328-
goto after_customProperties;
1329-
}
1330-
1331-
if (is_array($value)) {
1332-
try {
1333-
$this->hydrationStack[] = 'customProperties';
1334-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
1335-
} finally {
1336-
array_pop($this->hydrationStack);
1337-
}
1338-
}
1339-
1340-
$properties['customProperties'] = $value;
1341-
1342-
after_customProperties:
1343-
13441322
$value = $payload['has_issues'] ?? null;
13451323

13461324
if ($value === null) {
@@ -5165,26 +5143,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️We
51655143
}
51665144
}
51675145

5168-
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
5169-
{
5170-
$properties = [];
5171-
$missingFields = [];
5172-
try {
5173-
} catch (Throwable $exception) {
5174-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
5175-
}
5176-
5177-
if (count($missingFields) > 0) {
5178-
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
5179-
}
5180-
5181-
try {
5182-
return new CustomProperties(...$properties);
5183-
} catch (Throwable $exception) {
5184-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
5185-
}
5186-
}
5187-
51885146
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubAE\Schema\Repository\TemplateRepository\Owner
51895147
{
51905148
$properties = [];
@@ -6021,15 +5979,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
60215979
$topics = $topicsSerializer0->serialize($topics, $this);
60225980
after_topics: $result['topics'] = $topics;
60235981

6024-
$customProperties = $object->customProperties;
6025-
6026-
if ($customProperties === null) {
6027-
goto after_customProperties;
6028-
}
6029-
6030-
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
6031-
after_customProperties: $result['custom_properties'] = $customProperties;
6032-
60335982
$hasIssues = $object->hasIssues;
60345983
after_hasIssues: $result['has_issues'] = $hasIssues;
60355984

clients/GitHubAE/src/Internal/Hydrator/WebHook/CheckRun.php

-51
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use ApiClients\Client\GitHubAE\Schema\MinimalRepository\License;
1616
use ApiClients\Client\GitHubAE\Schema\OrganizationSimpleWebhooks;
1717
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks;
18-
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties;
1918
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\TemplateRepository;
2019
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\TemplateRepository\Owner;
2120
use ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis;
@@ -107,7 +106,6 @@ public function hydrateObject(string $className, array $payload): object
107106
'ApiClients\Client\GitHubAE\Schema\WebhookCheckRunRequestedActionFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️WebhookCheckRunRequestedActionFormEncoded($payload),
108107
'ApiClients\Client\GitHubAE\Schema\WebhookCheckRunRerequested' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️WebhookCheckRunRerequested($payload),
109108
'ApiClients\Client\GitHubAE\Schema\WebhookCheckRunRerequestedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️WebhookCheckRunRerequestedFormEncoded($payload),
110-
'ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
111109
'ApiClients\Client\GitHubAE\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
112110
'ApiClients\Client\GitHubAE\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
113111
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -3941,26 +3939,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Re
39413939

39423940
after_topics:
39433941

3944-
$value = $payload['custom_properties'] ?? null;
3945-
3946-
if ($value === null) {
3947-
$properties['customProperties'] = null;
3948-
goto after_customProperties;
3949-
}
3950-
3951-
if (is_array($value)) {
3952-
try {
3953-
$this->hydrationStack[] = 'customProperties';
3954-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
3955-
} finally {
3956-
array_pop($this->hydrationStack);
3957-
}
3958-
}
3959-
3960-
$properties['customProperties'] = $value;
3961-
3962-
after_customProperties:
3963-
39643942
$value = $payload['has_issues'] ?? null;
39653943

39663944
if ($value === null) {
@@ -6491,26 +6469,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️We
64916469
}
64926470
}
64936471

6494-
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
6495-
{
6496-
$properties = [];
6497-
$missingFields = [];
6498-
try {
6499-
} catch (Throwable $exception) {
6500-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
6501-
}
6502-
6503-
if (count($missingFields) > 0) {
6504-
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
6505-
}
6506-
6507-
try {
6508-
return new CustomProperties(...$properties);
6509-
} catch (Throwable $exception) {
6510-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
6511-
}
6512-
}
6513-
65146472
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubAE\Schema\Repository\TemplateRepository\Owner
65156473
{
65166474
$properties = [];
@@ -8628,15 +8586,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
86288586
$topics = $topicsSerializer0->serialize($topics, $this);
86298587
after_topics: $result['topics'] = $topics;
86308588

8631-
$customProperties = $object->customProperties;
8632-
8633-
if ($customProperties === null) {
8634-
goto after_customProperties;
8635-
}
8636-
8637-
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
8638-
after_customProperties: $result['custom_properties'] = $customProperties;
8639-
86408589
$hasIssues = $object->hasIssues;
86418590
after_hasIssues: $result['has_issues'] = $hasIssues;
86428591

clients/GitHubAE/src/Internal/Hydrator/WebHook/CheckSuite.php

-51
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use ApiClients\Client\GitHubAE\Schema\LicenseSimple;
99
use ApiClients\Client\GitHubAE\Schema\OrganizationSimpleWebhooks;
1010
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks;
11-
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties;
1211
use ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\TemplateRepository;
1312
use ApiClients\Client\GitHubAE\Schema\SimpleInstallation;
1413
use ApiClients\Client\GitHubAE\Schema\SimpleUser;
@@ -92,7 +91,6 @@ public function hydrateObject(string $className, array $payload): object
9291
'ApiClients\Client\GitHubAE\Schema\WebhookCheckSuiteRerequested\CheckSuite\HeadCommit' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite⚡️HeadCommit($payload),
9392
'ApiClients\Client\GitHubAE\Schema\WebhookCheckSuiteRerequested\CheckSuite\HeadCommit\Author' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite⚡️HeadCommit⚡️Author($payload),
9493
'ApiClients\Client\GitHubAE\Schema\WebhookCheckSuiteRerequested\CheckSuite\HeadCommit\Committer' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️WebhookCheckSuiteRerequested⚡️CheckSuite⚡️HeadCommit⚡️Committer($payload),
95-
'ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
9694
'ApiClients\Client\GitHubAE\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
9795
'ApiClients\Client\GitHubAE\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
9896
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -2613,26 +2611,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Re
26132611

26142612
after_topics:
26152613

2616-
$value = $payload['custom_properties'] ?? null;
2617-
2618-
if ($value === null) {
2619-
$properties['customProperties'] = null;
2620-
goto after_customProperties;
2621-
}
2622-
2623-
if (is_array($value)) {
2624-
try {
2625-
$this->hydrationStack[] = 'customProperties';
2626-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
2627-
} finally {
2628-
array_pop($this->hydrationStack);
2629-
}
2630-
}
2631-
2632-
$properties['customProperties'] = $value;
2633-
2634-
after_customProperties:
2635-
26362614
$value = $payload['has_issues'] ?? null;
26372615

26382616
if ($value === null) {
@@ -7727,26 +7705,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️We
77277705
}
77287706
}
77297707

7730-
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
7731-
{
7732-
$properties = [];
7733-
$missingFields = [];
7734-
try {
7735-
} catch (Throwable $exception) {
7736-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
7737-
}
7738-
7739-
if (count($missingFields) > 0) {
7740-
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
7741-
}
7742-
7743-
try {
7744-
return new CustomProperties(...$properties);
7745-
} catch (Throwable $exception) {
7746-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
7747-
}
7748-
}
7749-
77507708
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubAE\Schema\Repository\TemplateRepository\Owner
77517709
{
77527710
$properties = [];
@@ -9349,15 +9307,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
93499307
$topics = $topicsSerializer0->serialize($topics, $this);
93509308
after_topics: $result['topics'] = $topics;
93519309

9352-
$customProperties = $object->customProperties;
9353-
9354-
if ($customProperties === null) {
9355-
goto after_customProperties;
9356-
}
9357-
9358-
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
9359-
after_customProperties: $result['custom_properties'] = $customProperties;
9360-
93619310
$hasIssues = $object->hasIssues;
93629311
after_hasIssues: $result['has_issues'] = $hasIssues;
93639312

0 commit comments

Comments
 (0)