Skip to content

Commit ce76fe5

Browse files
authored
[GitHubAE] Update to 1.1.4-4516e4506b1725b6dedcb395a7795d46 from 1.1.4-cf31a7400788c7bef478bddc6524b440
Detected Schema changes: ├─┬Paths │ ├─┬/repos/{owner}/{repo}/environments/{environment_name} │ │ └─┬PUT │ │ └─┬Requestbody │ │ └─┬application/json │ │ ├─┬Schema │ │ │ └──[-] properties (19079:17)❌ │ │ └─┬default │ │ ├──[M] value (19106:19) │ │ ├──[M] value (19106:19) │ │ └──[-] value (19107:19) │ └─┬/orgs/{org}/migrations │ └─┬POST │ └─┬Requestbody │ └─┬application/json │ └─┬Schema │ └─┬exclude │ └──[M] description (7631:32) ├──ping └─┬Components ├──[-] schemas (58776:7)❌ ├─┬webhook-check-suite-requested │ └─┬check_suite │ └─┬conclusion │ └──[M] description (68652:28) ├─┬webhook-code-scanning-alert-fixed │ └─┬alert │ └─┬dismissed_reason │ └──[M] description (70343:28) ├─┬webhook-code-scanning-alert-appeared-in-branch │ └─┬alert │ └─┬dismissed_reason │ └──[M] description (69578:28) ├─┬webhook-check-suite-completed │ └─┬check_suite │ └─┬conclusion │ └──[M] description (68038:28) ├─┬webhook-code-scanning-alert-closed-by-user │ └─┬alert │ └─┬dismissed_reason │ └──[M] description (69836:28) ├─┬webhook-check-suite-rerequested │ └─┬check_suite │ └─┬conclusion │ └──[M] description (69259:28) ├─┬full-repository │ └──[+] required (54451:9)❌ └─┬webhook-deployment-status-created └─┬check_run └─┬conclusion └──[M] description (75150:28) Date: 10/05/23 | Commit: New: etc/specs/GitHubAE/previous.spec.yaml, Original: etc/specs/GitHubAE/current.spec.yaml Document Element | Total Changes | Breaking Changes paths | 5 | 1 components | 9 | 2 ❌ 3 Breaking changes out of 14 INFO: Modifications: 10 INFO: Removals: 3 INFO: Additions: 1 INFO: Breaking Removals: 2 INFO: Breaking Additions: 1 ERROR: breaking changes discovered
1 parent 25f17d1 commit ce76fe5

File tree

22 files changed

+97
-52
lines changed

22 files changed

+97
-52
lines changed

etc/openapi-client-generator.state

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "cf31a7400788c7bef478bddc6524b440",
2+
"specHash": "4516e4506b1725b6dedcb395a7795d46",
33
"generatedFiles": {
44
"files": [
55
{
@@ -560,7 +560,7 @@
560560
},
561561
{
562562
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/FullRepository.php",
563-
"hash": "ace717d6f29b8f4d092879263de3c0d3"
563+
"hash": "df9bbdb8a05213c97d34f29faa02cf2c"
564564
},
565565
{
566566
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/Artifact.php",
@@ -1304,31 +1304,31 @@
13041304
},
13051305
{
13061306
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteCompleted.php",
1307-
"hash": "0b8f51b474c007c3e2db3fe307cb4eea"
1307+
"hash": "26d51c9152dff64ef1f729ed52534fea"
13081308
},
13091309
{
13101310
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRequested.php",
1311-
"hash": "fa40e61d2a61cd6a12e61c52d3e9d396"
1311+
"hash": "dec27e3502667746d81704c4c02527fb"
13121312
},
13131313
{
13141314
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRerequested.php",
1315-
"hash": "d46dbc4164bca5755b9994dc872eac0a"
1315+
"hash": "32d4affa52f3d60fefcd86d14225e34c"
13161316
},
13171317
{
13181318
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch.php",
1319-
"hash": "4864b84d61a0786f0283899212d74b41"
1319+
"hash": "da25f0c90b1476754645df67f687110d"
13201320
},
13211321
{
13221322
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php",
1323-
"hash": "480ae827f9c927a5646671df1c4bd004"
1323+
"hash": "1f3feef63a6a90ac5bbf579b1797af49"
13241324
},
13251325
{
13261326
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php",
13271327
"hash": "c6dff5372663a93bf310e9785948ef8f"
13281328
},
13291329
{
13301330
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php",
1331-
"hash": "d4e6ca055660fb4535fa48c12bcdad51"
1331+
"hash": "46c87189537a92f30551cb2b2cc93100"
13321332
},
13331333
{
13341334
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened.php",
@@ -1396,7 +1396,7 @@
13961396
},
13971397
{
13981398
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentStatusCreated.php",
1399-
"hash": "868bfead342ada3d68d848917407225c"
1399+
"hash": "e3ae0dc7a0fcae4b71d8df3f27f48b6c"
14001400
},
14011401
{
14021402
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionAnswered.php",
@@ -1984,7 +1984,7 @@
19841984
},
19851985
{
19861986
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAndAnalysis.php",
1987-
"hash": "03aea784f85dd66c580140195e527dda"
1987+
"hash": "527f9cd4c2fe5f0215ce6616a3e35f60"
19881988
},
19891989
{
19901990
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipCancelled.php",
@@ -2716,7 +2716,7 @@
27162716
},
27172717
{
27182718
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteCompleted\/CheckSuite.php",
2719-
"hash": "347b7c560ca5c1e2133969a4ffc7fb00"
2719+
"hash": "77f5eae058637db131f629778a58a6dc"
27202720
},
27212721
{
27222722
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteCompleted\/CheckSuite\/App.php",
@@ -2748,23 +2748,23 @@
27482748
},
27492749
{
27502750
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRequested\/CheckSuite.php",
2751-
"hash": "15a90a75eb0c78a1e0d18bf40a8edccf"
2751+
"hash": "01d7cd85b63a310c9196dd3ec2cb746a"
27522752
},
27532753
{
27542754
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRequested\/CheckSuite\/App.php",
27552755
"hash": "de3915e85ee0be3d85eb820f420fecbd"
27562756
},
27572757
{
27582758
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRerequested\/CheckSuite.php",
2759-
"hash": "d79dddd95c2079b7ae22101889496b8a"
2759+
"hash": "b4c048875f52504991314c51bbca635a"
27602760
},
27612761
{
27622762
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRerequested\/CheckSuite\/App.php",
27632763
"hash": "153a71ed1fd0a4f74ad1fc4231df0945"
27642764
},
27652765
{
27662766
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch\/Alert.php",
2767-
"hash": "a5954e4a1fced0322db5d144f643a7f5"
2767+
"hash": "a84fbaf33d1672067be290f5e4ccdc59"
27682768
},
27692769
{
27702770
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch\/Alert\/MostRecentInstance.php",
@@ -2784,7 +2784,7 @@
27842784
},
27852785
{
27862786
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert.php",
2787-
"hash": "2b6da8714b110e6876e827aef30c036b"
2787+
"hash": "cf6a83dff7de3b44ad92f659d2be9c13"
27882788
},
27892789
{
27902790
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser\/Alert\/Rule.php",
@@ -2804,7 +2804,7 @@
28042804
},
28052805
{
28062806
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed\/Alert.php",
2807-
"hash": "de95d59b6a8fece0e7016e46c26d4975"
2807+
"hash": "a71262207505f0ed0d7653acbd6ad0f1"
28082808
},
28092809
{
28102810
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened\/Alert.php",
@@ -2856,7 +2856,7 @@
28562856
},
28572857
{
28582858
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentStatusCreated\/CheckRun.php",
2859-
"hash": "d69ec9314d37603538dced5d8eecee64"
2859+
"hash": "13e2635ff0392205b7bc8228490bca50"
28602860
},
28612861
{
28622862
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentStatusCreated\/Deployment.php",
@@ -4088,7 +4088,7 @@
40884088
},
40894089
{
40904090
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/Migrations\/StartForOrg\/Request\/ApplicationJson.php",
4091-
"hash": "dc18f2b6236a247f9e2b8ca4b725d2e1"
4091+
"hash": "0ef1179acd73c1ecf667bf04a1205fd1"
40924092
},
40934093
{
40944094
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/Orgs\/ConvertMemberToOutsideCollaborator\/Request\/ApplicationJson.php",
@@ -4460,7 +4460,7 @@
44604460
},
44614461
{
44624462
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrUpdateEnvironment\/Request\/ApplicationJson.php",
4463-
"hash": "7b394947450dda942019a75199dd492a"
4463+
"hash": "9a9c729e94c3288780dc5772a357a896"
44644464
},
44654465
{
44664466
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrUpdateEnvironment\/Request\/ApplicationJson\/Reviewers.php",
@@ -22420,7 +22420,7 @@
2242022420
},
2242122421
{
2242222422
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo.php",
22423-
"hash": "8d3a8226ce62ddc5bec27bfb1890ffe7"
22423+
"hash": "9629823d094ae88d4856682072b9a58b"
2242422424
},
2242522425
{
2242622426
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts.php",
@@ -22764,7 +22764,7 @@
2276422764
},
2276522765
{
2276622766
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Forks.php",
22767-
"hash": "ab7745f1777bf95f5f835251467cb53b"
22767+
"hash": "0a4e58a07b8744b10429dac83413128e"
2276822768
},
2276922769
{
2277022770
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Git\/Blobs.php",
@@ -23405,6 +23405,10 @@
2340523405
{
2340623406
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/DeploymentBranchPolicyNamePatternWithType.php",
2340723407
"hash": "0b3d0945d7c97e2f516829d303f42e99"
23408+
},
23409+
{
23410+
"name": ".\/clients\/GitHubAE\/etc\/..\/\/src\/\/Schema\/PreventSelfReview.php",
23411+
"hash": "dd5d913139bee349aa1bdcbb132d1efa"
2340823412
}
2340923413
]
2341023414
},

src/Internal/Hydrator/Operation/Repos/Owner/Repo.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Fu
809809
$value = $payload['has_downloads'] ?? null;
810810

811811
if ($value === null) {
812-
$missingFields[] = 'has_downloads';
812+
$properties['hasDownloads'] = null;
813813
goto after_hasDownloads;
814814
}
815815

@@ -4842,7 +4842,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
48424842
$hasPages = $object->hasPages;
48434843
after_hasPages: $result['has_pages'] = $hasPages;
48444844

4845-
$hasDownloads = $object->hasDownloads;
4845+
$hasDownloads = $object->hasDownloads;
4846+
4847+
if ($hasDownloads === null) {
4848+
goto after_hasDownloads;
4849+
}
4850+
48464851
after_hasDownloads: $result['has_downloads'] = $hasDownloads;
48474852

48484853
$hasDiscussions = $object->hasDiscussions;

src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Fu
957957
$value = $payload['has_downloads'] ?? null;
958958

959959
if ($value === null) {
960-
$missingFields[] = 'has_downloads';
960+
$properties['hasDownloads'] = null;
961961
goto after_hasDownloads;
962962
}
963963

@@ -4989,7 +4989,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
49894989
$hasPages = $object->hasPages;
49904990
after_hasPages: $result['has_pages'] = $hasPages;
49914991

4992-
$hasDownloads = $object->hasDownloads;
4992+
$hasDownloads = $object->hasDownloads;
4993+
4994+
if ($hasDownloads === null) {
4995+
goto after_hasDownloads;
4996+
}
4997+
49934998
after_hasDownloads: $result['has_downloads'] = $hasDownloads;
49944999

49955000
$hasDiscussions = $object->hasDiscussions;

src/Schema/FullRepository.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"forks",
6464
"forks_count",
6565
"git_url",
66-
"has_downloads",
6766
"has_issues",
6867
"has_projects",
6968
"has_wiki",
@@ -6358,7 +6357,7 @@ public function __construct(public int $id, #[MapFrom('node_id')]
63586357
public bool $hasProjects, #[MapFrom('has_wiki')]
63596358
public bool $hasWiki, #[MapFrom('has_pages')]
63606359
public bool $hasPages, #[MapFrom('has_downloads')]
6361-
public bool $hasDownloads, #[MapFrom('has_discussions')]
6360+
public bool|null $hasDownloads, #[MapFrom('has_discussions')]
63626361
public bool $hasDiscussions, public bool $archived, public bool $disabled, public string|null $visibility, #[MapFrom('pushed_at')]
63636362
public string $pushedAt, #[MapFrom('created_at')]
63646363
public string $createdAt, #[MapFrom('updated_at')]

src/Schema/Migrations/StartForOrg/Request/ApplicationJson.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
],
8080
"type": "string"
8181
},
82-
"description": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `\\"repositories\\"`."
82+
"description": "Exclude related items from being returned in the response in order to improve performance of the request."
8383
}
8484
}
8585
}';
@@ -112,7 +112,7 @@
112112
* excludeReleases: Indicates whether releases should be excluded from the migration (to reduce migration archive file size).
113113
* excludeOwnerProjects: Indicates whether projects owned by the organization or users should be excluded. from the migration.
114114
* orgMetadataOnly: Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).
115-
* exclude: Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.
115+
* exclude: Exclude related items from being returned in the response in order to improve performance of the request.
116116
*/
117117
public function __construct(public array $repositories, #[MapFrom('lock_repositories')]
118118
public bool|null $lockRepositories, #[MapFrom('exclude_metadata')]

src/Schema/PreventSelfReview.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ApiClients\Client\GitHubAE\Schema;
6+
7+
final readonly class PreventSelfReview
8+
{
9+
public const SCHEMA_JSON = '{
10+
"type": "boolean",
11+
"description": "Whether or not a user who created the job is prevented from approving their own job.",
12+
"examples": [
13+
false
14+
]
15+
}';
16+
public const SCHEMA_TITLE = '';
17+
public const SCHEMA_DESCRIPTION = 'Whether or not a user who created the job is prevented from approving their own job.';
18+
public const SCHEMA_EXAMPLE_DATA = '[]';
19+
20+
public function __construct()
21+
{
22+
}
23+
}

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
30
2323
]
2424
},
25+
"prevent_self_review": {
26+
"type": "boolean",
27+
"description": "Whether or not a user who created the job is prevented from approving their own job.",
28+
"examples": [
29+
false
30+
]
31+
},
2532
"reviewers": {
2633
"type": [
2734
"array",
@@ -80,6 +87,7 @@
8087
public const SCHEMA_DESCRIPTION = '';
8188
public const SCHEMA_EXAMPLE_DATA = '{
8289
"wait_timer": 30,
90+
"prevent_self_review": false,
8391
"reviewers": null,
8492
"deployment_branch_policy": {
8593
"protected_branches": false,
@@ -89,11 +97,13 @@
8997

9098
/**
9199
* waitTimer: The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).
100+
* preventSelfReview: Whether or not a user who created the job is prevented from approving their own job.
92101
* reviewers: The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
93102
* deploymentBranchPolicy: The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.
94103
*/
95104
public function __construct(#[MapFrom('wait_timer')]
96-
public int|null $waitTimer, public array|null $reviewers, #[MapFrom('deployment_branch_policy')]
105+
public int|null $waitTimer, #[MapFrom('prevent_self_review')]
106+
public bool|null $preventSelfReview, public array|null $reviewers, #[MapFrom('deployment_branch_policy')]
97107
public Schema\DeploymentBranchPolicySettings|null $deploymentBranchPolicy,)
98108
{
99109
}

src/Schema/WebhookCheckSuiteCompleted.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@
556556
"string",
557557
"null"
558558
],
559-
"description": "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`."
559+
"description": "The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`."
560560
},
561561
"created_at": {
562562
"type": "string",

src/Schema/WebhookCheckSuiteCompleted/CheckSuite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@
540540
"string",
541541
"null"
542542
],
543-
"description": "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`."
543+
"description": "The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`."
544544
},
545545
"created_at": {
546546
"type": "string",
@@ -947,7 +947,7 @@
947947

948948
/**
949949
* app: GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
950-
* conclusion: The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has `completed`.
950+
* conclusion: The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`.
951951
* headBranch: The head branch name the changes are on.
952952
* headSha: The SHA of the head commit that is being checked.
953953
* pullRequests: An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty.

src/Schema/WebhookCheckSuiteRequested.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@
556556
"string",
557557
"null"
558558
],
559-
"description": "The summary conclusion for all check runs that are part of the check suite. Can be one of `success`, `failure`,` neutral`, `cancelled`, `timed_out`, `action_required` or `stale`. This value will be `null` until the check run has completed."
559+
"description": "The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed."
560560
},
561561
"created_at": {
562562
"type": "string",

0 commit comments

Comments
 (0)