Skip to content

Commit 6aefd72

Browse files
committed
Spec updates
1 parent e88c046 commit 6aefd72

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⚡️GitHubEnterpriseCloud⚡️S
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) {
@@ -4721,6 +4732,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
47214732

47224733
after_analysisKey:
47234734

4735+
$value = $payload['category'] ?? null;
4736+
4737+
if ($value === null) {
4738+
$properties['category'] = null;
4739+
goto after_category;
4740+
}
4741+
4742+
$properties['category'] = $value;
4743+
4744+
after_category:
4745+
47244746
$value = $payload['classifications'] ?? null;
47254747

47264748
if ($value === null) {
@@ -5506,6 +5528,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
55065528

55075529
after_analysisKey:
55085530

5531+
$value = $payload['category'] ?? null;
5532+
5533+
if ($value === null) {
5534+
$properties['category'] = null;
5535+
goto after_category;
5536+
}
5537+
5538+
$properties['category'] = $value;
5539+
5540+
after_category:
5541+
55095542
$value = $payload['classifications'] ?? null;
55105543

55115544
if ($value === null) {
@@ -6519,6 +6552,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
65196552

65206553
after_analysisKey:
65216554

6555+
$value = $payload['category'] ?? null;
6556+
6557+
if ($value === null) {
6558+
$properties['category'] = null;
6559+
goto after_category;
6560+
}
6561+
6562+
$properties['category'] = $value;
6563+
6564+
after_category:
6565+
65226566
$value = $payload['classifications'] ?? null;
65236567

65246568
if ($value === null) {
@@ -7260,6 +7304,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
72607304

72617305
after_analysisKey:
72627306

7307+
$value = $payload['category'] ?? null;
7308+
7309+
if ($value === null) {
7310+
$properties['category'] = null;
7311+
goto after_category;
7312+
}
7313+
7314+
$properties['category'] = $value;
7315+
7316+
after_category:
7317+
72637318
$value = $payload['classifications'] ?? null;
72647319

72657320
if ($value === null) {
@@ -8001,6 +8056,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
80018056

80028057
after_analysisKey:
80038058

8059+
$value = $payload['category'] ?? null;
8060+
8061+
if ($value === null) {
8062+
$properties['category'] = null;
8063+
goto after_category;
8064+
}
8065+
8066+
$properties['category'] = $value;
8067+
8068+
after_category:
8069+
80048070
$value = $payload['classifications'] ?? null;
80058071

80068072
if ($value === null) {
@@ -8788,6 +8854,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
87888854
after_analysisKey: $result['analysis_key'] = $analysisKey;
87898855

87908856

8857+
$category = $object->category;
8858+
8859+
if ($category === null) {
8860+
goto after_category;
8861+
}
8862+
after_category: $result['category'] = $category;
8863+
8864+
87918865
$classifications = $object->classifications;
87928866

87938867
if ($classifications === null) {
@@ -11026,6 +11100,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
1102611100
after_analysisKey: $result['analysis_key'] = $analysisKey;
1102711101

1102811102

11103+
$category = $object->category;
11104+
11105+
if ($category === null) {
11106+
goto after_category;
11107+
}
11108+
after_category: $result['category'] = $category;
11109+
11110+
1102911111
$classifications = $object->classifications;
1103011112

1103111113
if ($classifications === null) {
@@ -11436,6 +11518,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
1143611518
after_analysisKey: $result['analysis_key'] = $analysisKey;
1143711519

1143811520

11521+
$category = $object->category;
11522+
11523+
if ($category === null) {
11524+
goto after_category;
11525+
}
11526+
after_category: $result['category'] = $category;
11527+
11528+
1143911529
$classifications = $object->classifications;
1144011530

1144111531
if ($classifications === null) {
@@ -11984,6 +12074,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
1198412074
after_analysisKey: $result['analysis_key'] = $analysisKey;
1198512075

1198612076

12077+
$category = $object->category;
12078+
12079+
if ($category === null) {
12080+
goto after_category;
12081+
}
12082+
after_category: $result['category'] = $category;
12083+
12084+
1198712085
$classifications = $object->classifications;
1198812086

1198912087
if ($classifications === null) {
@@ -12366,6 +12464,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
1236612464
after_analysisKey: $result['analysis_key'] = $analysisKey;
1236712465

1236812466

12467+
$category = $object->category;
12468+
12469+
if ($category === null) {
12470+
goto after_category;
12471+
}
12472+
after_category: $result['category'] = $category;
12473+
12474+
1236912475
$classifications = $object->classifications;
1237012476

1237112477
if ($classifications === null) {
@@ -12736,6 +12842,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
1273612842
after_analysisKey: $result['analysis_key'] = $analysisKey;
1273712843

1273812844

12845+
$category = $object->category;
12846+
12847+
if ($category === null) {
12848+
goto after_category;
12849+
}
12850+
after_category: $result['category'] = $category;
12851+
12852+
1273912853
$classifications = $object->classifications;
1274012854

1274112855
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\GitHubEnterpriseCloud\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`."},"head_repo":{"type":"string","description":"The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.","format":"repo.nwo","examples":["octo-org\\/octo-repo"]},"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\\/enterprise-cloud@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\\/enterprise-cloud@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`."},"head_repo":{"type":"string","description":"The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.","format":"repo.nwo","examples":["octo-org\\/octo-repo"]},"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\\/enterprise-cloud@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\\/enterprise-cloud@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","head_repo":"octo-org\\/octo-repo","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)