Skip to content

Commit

Permalink
feat: add optional apply parameter to `octokit.enterpriseAdmin.lic…
Browse files Browse the repository at this point in the history
…enseUpload()` (#671)

WIP octokit/openapi updated
  • Loading branch information
octokitbot committed Apr 9, 2024
1 parent 5340ea4 commit 7a43f87
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/ghe-312.md
Expand Up @@ -83,7 +83,7 @@ octokit.enterpriseAdmin.initializeInstanceConfiguration({
});
octokit.enterpriseAdmin.licenseCheck({ origin });
octokit.enterpriseAdmin.licenseInfo({ origin });
octokit.enterpriseAdmin.licenseUpload({ origin });
octokit.enterpriseAdmin.licenseUpload({ apply, origin });
octokit.enterpriseAdmin.listGlobalWebhooks({ per_page, page });
octokit.enterpriseAdmin.listPersonalAccessTokens({ per_page, page });
octokit.enterpriseAdmin.listPreReceiveEnvironments({
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -28,7 +28,7 @@
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit/types": "^13.3.0"
"@octokit/types": "^13.4.0"
},
"peerDependencies": {
"@octokit/core": ">=5"
Expand Down
15 changes: 14 additions & 1 deletion scripts/update-endpoints/generated/ghe312-endpoints.json
Expand Up @@ -21900,14 +21900,27 @@
"scope": "enterpriseAdmin",
"id": "licenseUpload",
"method": "PUT",
"url": "{origin}/manage/v1/config/license",
"url": "{origin}/manage/v1/config/license{?apply}",
"isDeprecated": false,
"deprecationDate": null,
"description": "Uploads an enterprise license. This operation does not automatically activate the license.",
"documentationUrl": "https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/manage-ghes#upload-an-enterprise-license",
"previews": [],
"headers": [],
"parameters": [
{
"name": "apply",
"description": "Whether to apply changes from the license. Uploading a license does not automatically apply changes. To make the changes effective, you can specify to apply the license too.",
"in": "QUERY",
"type": "boolean",
"required": false,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "origin",
"description": null,
Expand Down
2 changes: 1 addition & 1 deletion src/generated/ghe-312-admin-endpoints.ts
Expand Up @@ -73,7 +73,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
initializeInstanceConfiguration: ["POST {origin}/manage/v1/config/init"],
licenseCheck: ["GET {origin}/manage/v1/config/license/check"],
licenseInfo: ["GET {origin}/manage/v1/config/license"],
licenseUpload: ["PUT {origin}/manage/v1/config/license"],
licenseUpload: ["PUT {origin}/manage/v1/config/license{?apply}"],
listGlobalWebhooks: ["GET /admin/hooks"],
listPersonalAccessTokens: ["GET /admin/tokens"],
listPreReceiveEnvironments: ["GET /admin/pre-receive-environments"],
Expand Down
2 changes: 1 addition & 1 deletion src/generated/ghe-312-endpoints.ts
Expand Up @@ -597,7 +597,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
initializeInstanceConfiguration: ["POST {origin}/manage/v1/config/init"],
licenseCheck: ["GET {origin}/manage/v1/config/license/check"],
licenseInfo: ["GET {origin}/manage/v1/config/license"],
licenseUpload: ["PUT {origin}/manage/v1/config/license"],
licenseUpload: ["PUT {origin}/manage/v1/config/license{?apply}"],
listGlobalWebhooks: ["GET /admin/hooks"],
listPersonalAccessTokens: ["GET /admin/tokens"],
listPreReceiveEnvironments: ["GET /admin/pre-receive-environments"],
Expand Down

0 comments on commit 7a43f87

Please sign in to comment.