Skip to content

Commit a5a8f4b

Browse files
committed
Spec updates
1 parent 5774b1f commit a5a8f4b

File tree

75 files changed

+218
-98
lines changed

Some content is hidden

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

75 files changed

+218
-98
lines changed

src/Hydrator/WebHook/CodeScanningAlert.php

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️We
702702

703703
after_analysisKey:
704704

705+
$value = $payload['category'] ?? null;
706+
707+
if ($value === null) {
708+
$properties['category'] = null;
709+
goto after_category;
710+
}
711+
712+
$properties['category'] = $value;
713+
714+
after_category:
715+
705716
$value = $payload['classifications'] ?? null;
706717

707718
if ($value === null) {
@@ -4600,6 +4611,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️We
46004611

46014612
after_analysisKey:
46024613

4614+
$value = $payload['category'] ?? null;
4615+
4616+
if ($value === null) {
4617+
$properties['category'] = null;
4618+
goto after_category;
4619+
}
4620+
4621+
$properties['category'] = $value;
4622+
4623+
after_category:
4624+
46034625
$value = $payload['classifications'] ?? null;
46044626

46054627
if ($value === null) {
@@ -5385,6 +5407,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️We
53855407

53865408
after_analysisKey:
53875409

5410+
$value = $payload['category'] ?? null;
5411+
5412+
if ($value === null) {
5413+
$properties['category'] = null;
5414+
goto after_category;
5415+
}
5416+
5417+
$properties['category'] = $value;
5418+
5419+
after_category:
5420+
53885421
$value = $payload['classifications'] ?? null;
53895422

53905423
if ($value === null) {
@@ -6398,6 +6431,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️We
63986431

63996432
after_analysisKey:
64006433

6434+
$value = $payload['category'] ?? null;
6435+
6436+
if ($value === null) {
6437+
$properties['category'] = null;
6438+
goto after_category;
6439+
}
6440+
6441+
$properties['category'] = $value;
6442+
6443+
after_category:
6444+
64016445
$value = $payload['classifications'] ?? null;
64026446

64036447
if ($value === null) {
@@ -7139,6 +7183,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️We
71397183

71407184
after_analysisKey:
71417185

7186+
$value = $payload['category'] ?? null;
7187+
7188+
if ($value === null) {
7189+
$properties['category'] = null;
7190+
goto after_category;
7191+
}
7192+
7193+
$properties['category'] = $value;
7194+
7195+
after_category:
7196+
71427197
$value = $payload['classifications'] ?? null;
71437198

71447199
if ($value === null) {
@@ -7880,6 +7935,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️We
78807935

78817936
after_analysisKey:
78827937

7938+
$value = $payload['category'] ?? null;
7939+
7940+
if ($value === null) {
7941+
$properties['category'] = null;
7942+
goto after_category;
7943+
}
7944+
7945+
$properties['category'] = $value;
7946+
7947+
after_category:
7948+
78837949
$value = $payload['classifications'] ?? null;
78847950

78857951
if ($value === null) {
@@ -8667,6 +8733,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
86678733
after_analysisKey: $result['analysis_key'] = $analysisKey;
86688734

86698735

8736+
$category = $object->category;
8737+
8738+
if ($category === null) {
8739+
goto after_category;
8740+
}
8741+
after_category: $result['category'] = $category;
8742+
8743+
86708744
$classifications = $object->classifications;
86718745

86728746
if ($classifications === null) {
@@ -10817,6 +10891,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
1081710891
after_analysisKey: $result['analysis_key'] = $analysisKey;
1081810892

1081910893

10894+
$category = $object->category;
10895+
10896+
if ($category === null) {
10897+
goto after_category;
10898+
}
10899+
after_category: $result['category'] = $category;
10900+
10901+
1082010902
$classifications = $object->classifications;
1082110903

1082210904
if ($classifications === null) {
@@ -11227,6 +11309,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
1122711309
after_analysisKey: $result['analysis_key'] = $analysisKey;
1122811310

1122911311

11312+
$category = $object->category;
11313+
11314+
if ($category === null) {
11315+
goto after_category;
11316+
}
11317+
after_category: $result['category'] = $category;
11318+
11319+
1123011320
$classifications = $object->classifications;
1123111321

1123211322
if ($classifications === null) {
@@ -11775,6 +11865,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
1177511865
after_analysisKey: $result['analysis_key'] = $analysisKey;
1177611866

1177711867

11868+
$category = $object->category;
11869+
11870+
if ($category === null) {
11871+
goto after_category;
11872+
}
11873+
after_category: $result['category'] = $category;
11874+
11875+
1177811876
$classifications = $object->classifications;
1177911877

1178011878
if ($classifications === null) {
@@ -12157,6 +12255,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
1215712255
after_analysisKey: $result['analysis_key'] = $analysisKey;
1215812256

1215912257

12258+
$category = $object->category;
12259+
12260+
if ($category === null) {
12261+
goto after_category;
12262+
}
12263+
after_category: $result['category'] = $category;
12264+
12265+
1216012266
$classifications = $object->classifications;
1216112267

1216212268
if ($classifications === null) {
@@ -12527,6 +12633,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
1252712633
after_analysisKey: $result['analysis_key'] = $analysisKey;
1252812634

1252912635

12636+
$category = $object->category;
12637+
12638+
if ($category === null) {
12639+
goto after_category;
12640+
}
12641+
after_category: $result['category'] = $category;
12642+
12643+
1253012644
$classifications = $object->classifications;
1253112645

1253212646
if ($classifications === null) {

src/Schema/Event.php

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

src/Schema/Event/Payload.php

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

src/Schema/Issue.php

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

src/Schema/IssueComment.php

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

src/Schema/IssueEvent.php

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

src/Schema/IssueSearchResultItem.php

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

src/Schema/Operation/Search/IssuesAndPullRequests/Response/Applicationjson/H200.php

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

src/Schema/Pulls/Create/Request/Applicationjson.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use ApiClients\Client\GitHubAE\WebHook;
1111
final readonly class Applicationjson
1212
{
13-
public const SCHEMA_JSON = '{"required":["head","base"],"type":"object","properties":{"title":{"type":"string","description":"The title of the new pull request. Required unless `issue` is specified."},"head":{"type":"string","description":"The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`."},"base":{"type":"string","description":"The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository."},"body":{"type":"string","description":"The contents of the pull request."},"maintainer_can_modify":{"type":"boolean","description":"Indicates whether [maintainers can modify](https:\\/\\/docs.github.com\\/github-ae@latest\\/articles\\/allowing-changes-to-a-pull-request-branch-created-from-a-fork\\/) the pull request."},"draft":{"type":"boolean","description":"Indicates whether the pull request is a draft. See \\"[Draft Pull Requests](https:\\/\\/docs.github.com\\/github-ae@latest\\/articles\\/about-pull-requests#draft-pull-requests)\\" in the GitHub Help documentation to learn more."},"issue":{"type":"integer","description":"An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.","examples":[1]}}}';
13+
public const SCHEMA_JSON = '{"required":["head","base"],"type":"object","properties":{"title":{"type":"string","description":"The title of the new pull request. Required unless `issue` is specified."},"head":{"type":"string","description":"The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`."},"base":{"type":"string","description":"The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository."},"body":{"type":"string","description":"The contents of the pull request."},"maintainer_can_modify":{"type":"boolean","description":"Indicates whether [maintainers can modify](https:\\/\\/docs.github.com\\/github-ae@latest\\/articles\\/allowing-changes-to-a-pull-request-branch-created-from-a-fork\\/) the pull request."},"draft":{"type":"boolean","description":"Indicates whether the pull request is a draft. See \\"[Draft Pull Requests](https:\\/\\/docs.github.com\\/github-ae@latest\\/articles\\/about-pull-requests#draft-pull-requests)\\" in the GitHub Help documentation to learn more."},"issue":{"type":"integer","description":"An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.","format":"int64","examples":[1]}}}';
1414
public const SCHEMA_TITLE = '';
1515
public const SCHEMA_DESCRIPTION = '';
1616
public const SCHEMA_EXAMPLE_DATA = '{"title":"generated_title_null","head":"generated_head_null","base":"generated_base_null","body":"generated_body_null","maintainer_can_modify":false,"draft":false,"issue":1}';

src/Schema/TimelineCrossReferencedEvent.php

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

0 commit comments

Comments
 (0)