Skip to content

[GitHub] Update to 1.1.4-529209138ca3f128f373739100dbd53c from 1.1.4-4298b69a1afaf61496dd8894c7a47c3a #1444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions clients/GitHub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12781,7 +12781,7 @@ You can find more about this operation over at the [API method documentation](ht

### repos/check-automated-security-fixes

Check if automated security fixes are enabled for a repository
Check if Dependabot security updates are enabled for a repository

Using the `call` method:
```php
Expand All @@ -12798,12 +12798,12 @@ $client->operations()->repos()->checkAutomatedSecurityFixes( owner: 'gene
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#check-if-automated-security-fixes-are-enabled-for-a-repository).
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository).


### repos/enable-automated-security-fixes

Enable automated security fixes
Enable Dependabot security updates

Using the `call` method:
```php
Expand All @@ -12820,12 +12820,12 @@ $client->operations()->repos()->enableAutomatedSecurityFixes( owner: 'gen
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#enable-automated-security-fixes).
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#enable-dependabot-security-updates).


### repos/disable-automated-security-fixes

Disable automated security fixes
Disable Dependabot security updates

Using the `call` method:
```php
Expand All @@ -12842,7 +12842,7 @@ $client->operations()->repos()->disableAutomatedSecurityFixes( owner: 'ge
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#disable-automated-security-fixes).
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/repos#disable-dependabot-security-updates).


### repos/list-branches
Expand Down
14 changes: 7 additions & 7 deletions clients/GitHub/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "4298b69a1afaf61496dd8894c7a47c3a",
"specHash": "529209138ca3f128f373739100dbd53c",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -11588,11 +11588,11 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatDetails.php",
"hash": "d6f19f23cdc6fe5278d7c13040ebea56"
"hash": "003304078fbde44a6ab6619c9187cc72"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Copilot\/ListCopilotSeats\/Response\/ApplicationJson\/Ok.php",
"hash": "5f65e0b6cd6d2af1cdd4dc734b2c02ba"
"hash": "ac127a9a68dedc61a4cd44f533bd6d49"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Copilot\/CancelCopilotSeatAssignmentForTeams\/Request\/ApplicationJson.php",
Expand All @@ -11616,7 +11616,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php",
"hash": "a75ea67ddca661703f2e47dd0ccf26ff"
"hash": "d060eb3636eaa4f0c49544da5eea2b43"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/EnableOrDisableSecurityProductOnAllOrgRepos\/Request\/ApplicationJson.php",
Expand Down Expand Up @@ -24224,7 +24224,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/CopilotSeatDetails\/AssigningTeam.php",
"hash": "86b25b1c2530248be880cee5d37b0759"
"hash": "8ce38f698adc69174916ccae39bcf6b0"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/RepositoryRuleset\/Conditions.php",
Expand Down Expand Up @@ -29392,7 +29392,7 @@
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/EnterpriseTeam.php",
"hash": "2ff06468420bec0b828b0d1d7b572714"
"hash": "6683f9956704100286df4bdaa14338b6"
},
{
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TeamRoleAssignment.php",
Expand Down Expand Up @@ -31500,7 +31500,7 @@
},
{
"name": "..\/..\/composer.lock",
"hash": "9968921f0959a081d8998c22c95e7f44"
"hash": "ba3412e727d85b330527d34ff8accb9e"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
}
}

if ($signature === 'created_at|group_id|html_url|id|members_url|name|slug|sync_to_organizations|updated_at|url') {
if ($signature === 'created_at|group_id|group_name|html_url|id|members_url|name|slug|sync_to_organizations|updated_at|url') {
try {
return $hydrator->hydrateObject(Schema\EnterpriseTeam::class, $value);
} catch (Throwable) {
Expand Down
16 changes: 8 additions & 8 deletions clients/GitHub/src/Schema/CheckAutomatedSecurityFixes.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
final readonly class CheckAutomatedSecurityFixes
{
public const SCHEMA_JSON = '{
"title": "Check Automated Security Fixes",
"title": "Check Dependabot security updates",
"required": [
"enabled",
"paused"
Expand All @@ -16,31 +16,31 @@
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether automated security fixes are enabled for the repository.",
"description": "Whether Dependabot security updates are enabled for the repository.",
"examples": [
true
]
},
"paused": {
"type": "boolean",
"description": "Whether automated security fixes are paused for the repository.",
"description": "Whether Dependabot security updates are paused for the repository.",
"examples": [
false
]
}
},
"description": "Check Automated Security Fixes"
"description": "Check Dependabot security updates"
}';
public const SCHEMA_TITLE = 'Check Automated Security Fixes';
public const SCHEMA_DESCRIPTION = 'Check Automated Security Fixes';
public const SCHEMA_TITLE = 'Check Dependabot security updates';
public const SCHEMA_DESCRIPTION = 'Check Dependabot security updates';
public const SCHEMA_EXAMPLE_DATA = '{
"enabled": true,
"paused": false
}';

/**
* enabled: Whether automated security fixes are enabled for the repository.
* paused: Whether automated security fixes are paused for the repository.
* enabled: Whether Dependabot security updates are enabled for the repository.
* paused: Whether Dependabot security updates are paused for the repository.
*/
public function __construct(public bool $enabled, public bool $paused)
{
Expand Down
9 changes: 9 additions & 0 deletions clients/GitHub/src/Schema/CopilotSeatDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,15 @@
"62ab9291-fae2-468e-974b-7e45096d5021"
]
},
"group_name": {
"type": [
"string",
"null"
],
"examples": [
"Justice League"
]
},
"html_url": {
"type": "string",
"format": "uri",
Expand Down
13 changes: 12 additions & 1 deletion clients/GitHub/src/Schema/EnterpriseTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@
"62ab9291-fae2-468e-974b-7e45096d5021"
]
},
"group_name": {
"type": [
"string",
"null"
],
"examples": [
"Justice League"
]
},
"html_url": {
"type": "string",
"format": "uri",
Expand Down Expand Up @@ -82,6 +91,7 @@
"url": "https:\\/\\/example.com\\/",
"sync_to_organizations": "disabled | all",
"group_id": "62ab9291-fae2-468e-974b-7e45096d5021",
"group_name": "Justice League",
"html_url": "https:\\/\\/github.com\\/enterprises\\/dc\\/teams\\/justice-league",
"members_url": "generated",
"created_at": "1970-01-01T00:00:00+00:00",
Expand All @@ -90,7 +100,8 @@

public function __construct(public int $id, public string $name, public string $slug, public string $url, #[MapFrom('sync_to_organizations')]
public string $syncToOrganizations, #[MapFrom('group_id')]
public string|null $groupId, #[MapFrom('html_url')]
public string|null $groupId, #[MapFrom('group_name')]
public string|null $groupName, #[MapFrom('html_url')]
public string $htmlUrl, #[MapFrom('members_url')]
public string $membersUrl, #[MapFrom('created_at')]
public string $createdAt, #[MapFrom('updated_at')]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,15 @@
"62ab9291-fae2-468e-974b-7e45096d5021"
]
},
"group_name": {
"type": [
"string",
"null"
],
"examples": [
"Justice League"
]
},
"html_url": {
"type": "string",
"format": "uri",
Expand Down
42 changes: 24 additions & 18 deletions etc/specs/GitHub/current.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21684,17 +21684,17 @@ paths:
subcategory: autolinks
"/repos/{owner}/{repo}/automated-security-fixes":
get:
summary: Check if automated security fixes are enabled for a repository
description: Shows whether automated security fixes are enabled, disabled or
paused for a repository. The authenticated user must have admin read access
to the repository. For more information, see "[Configuring automated security
fixes](https://docs.github.com/articles/configuring-automated-security-fixes)".
summary: Check if Dependabot security updates are enabled for a repository
description: Shows whether Dependabot security updates are enabled, disabled
or paused for a repository. The authenticated user must have admin read access
to the repository. For more information, see "[Configuring Dependabot security
updates](https://docs.github.com/articles/configuring-automated-security-fixes)".
tags:
- repos
operationId: repos/check-automated-security-fixes
externalDocs:
description: API method documentation
url: https://docs.github.com/rest/repos/repos#check-if-automated-security-fixes-are-enabled-for-a-repository
url: https://docs.github.com/rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
Expand All @@ -21718,16 +21718,16 @@ paths:
category: repos
subcategory: repos
put:
summary: Enable automated security fixes
description: Enables automated security fixes for a repository. The authenticated
summary: Enable Dependabot security updates
description: Enables Dependabot security updates for a repository. The authenticated
user must have admin access to the repository. For more information, see "[Configuring
automated security fixes](https://docs.github.com/articles/configuring-automated-security-fixes)".
Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)".
tags:
- repos
operationId: repos/enable-automated-security-fixes
externalDocs:
description: API method documentation
url: https://docs.github.com/rest/repos/repos#enable-automated-security-fixes
url: https://docs.github.com/rest/repos/repos#enable-dependabot-security-updates
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
Expand All @@ -21740,16 +21740,16 @@ paths:
category: repos
subcategory: repos
delete:
summary: Disable automated security fixes
description: Disables automated security fixes for a repository. The authenticated
summary: Disable Dependabot security updates
description: Disables Dependabot security updates for a repository. The authenticated
user must have admin access to the repository. For more information, see "[Configuring
automated security fixes](https://docs.github.com/articles/configuring-automated-security-fixes)".
Dependabot security updates](https://docs.github.com/articles/configuring-automated-security-fixes)".
tags:
- repos
operationId: repos/disable-automated-security-fixes
externalDocs:
description: API method documentation
url: https://docs.github.com/rest/repos/repos#disable-automated-security-fixes
url: https://docs.github.com/rest/repos/repos#disable-dependabot-security-updates
parameters:
- "$ref": "#/components/parameters/owner"
- "$ref": "#/components/parameters/repo"
Expand Down Expand Up @@ -74869,6 +74869,12 @@ components:
- 'null'
examples:
- 62ab9291-fae2-468e-974b-7e45096d5021
group_name:
type:
- string
- 'null'
examples:
- Justice League
html_url:
type: string
format: uri
Expand Down Expand Up @@ -81675,18 +81681,18 @@ components:
- url_template
- is_alphanumeric
check-automated-security-fixes:
title: Check Automated Security Fixes
description: Check Automated Security Fixes
title: Check Dependabot security updates
description: Check Dependabot security updates
type: object
properties:
enabled:
type: boolean
description: Whether automated security fixes are enabled for the repository.
description: Whether Dependabot security updates are enabled for the repository.
examples:
- true
paused:
type: boolean
description: Whether automated security fixes are paused for the repository.
description: Whether Dependabot security updates are paused for the repository.
examples:
- false
required:
Expand Down
Loading