Skip to content

Commit 7a43f87

Browse files
authored
feat: add optional apply parameter to octokit.enterpriseAdmin.licenseUpload() (#671)
WIP octokit/openapi updated
1 parent 5340ea4 commit 7a43f87

File tree

6 files changed

+26
-13
lines changed

6 files changed

+26
-13
lines changed

docs/ghe-312.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ octokit.enterpriseAdmin.initializeInstanceConfiguration({
8383
});
8484
octokit.enterpriseAdmin.licenseCheck({ origin });
8585
octokit.enterpriseAdmin.licenseInfo({ origin });
86-
octokit.enterpriseAdmin.licenseUpload({ origin });
86+
octokit.enterpriseAdmin.licenseUpload({ apply, origin });
8787
octokit.enterpriseAdmin.listGlobalWebhooks({ per_page, page });
8888
octokit.enterpriseAdmin.listPersonalAccessTokens({ per_page, page });
8989
octokit.enterpriseAdmin.listPreReceiveEnvironments({

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"author": "Gregor Martynus (https://github.com/gr2m)",
2929
"license": "MIT",
3030
"dependencies": {
31-
"@octokit/types": "^13.3.0"
31+
"@octokit/types": "^13.4.0"
3232
},
3333
"peerDependencies": {
3434
"@octokit/core": ">=5"

scripts/update-endpoints/generated/ghe312-endpoints.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21900,14 +21900,27 @@
2190021900
"scope": "enterpriseAdmin",
2190121901
"id": "licenseUpload",
2190221902
"method": "PUT",
21903-
"url": "{origin}/manage/v1/config/license",
21903+
"url": "{origin}/manage/v1/config/license{?apply}",
2190421904
"isDeprecated": false,
2190521905
"deprecationDate": null,
2190621906
"description": "Uploads an enterprise license. This operation does not automatically activate the license.",
2190721907
"documentationUrl": "https://docs.github.com/[email protected]/rest/enterprise-admin/manage-ghes#upload-an-enterprise-license",
2190821908
"previews": [],
2190921909
"headers": [],
2191021910
"parameters": [
21911+
{
21912+
"name": "apply",
21913+
"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.",
21914+
"in": "QUERY",
21915+
"type": "boolean",
21916+
"required": false,
21917+
"enum": null,
21918+
"allowNull": false,
21919+
"mapToData": null,
21920+
"validation": null,
21921+
"alias": null,
21922+
"deprecated": null
21923+
},
2191121924
{
2191221925
"name": "origin",
2191321926
"description": null,

src/generated/ghe-312-admin-endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
7373
initializeInstanceConfiguration: ["POST {origin}/manage/v1/config/init"],
7474
licenseCheck: ["GET {origin}/manage/v1/config/license/check"],
7575
licenseInfo: ["GET {origin}/manage/v1/config/license"],
76-
licenseUpload: ["PUT {origin}/manage/v1/config/license"],
76+
licenseUpload: ["PUT {origin}/manage/v1/config/license{?apply}"],
7777
listGlobalWebhooks: ["GET /admin/hooks"],
7878
listPersonalAccessTokens: ["GET /admin/tokens"],
7979
listPreReceiveEnvironments: ["GET /admin/pre-receive-environments"],

src/generated/ghe-312-endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ const Endpoints: EndpointsDefaultsAndDecorations = {
597597
initializeInstanceConfiguration: ["POST {origin}/manage/v1/config/init"],
598598
licenseCheck: ["GET {origin}/manage/v1/config/license/check"],
599599
licenseInfo: ["GET {origin}/manage/v1/config/license"],
600-
licenseUpload: ["PUT {origin}/manage/v1/config/license"],
600+
licenseUpload: ["PUT {origin}/manage/v1/config/license{?apply}"],
601601
listGlobalWebhooks: ["GET /admin/hooks"],
602602
listPersonalAccessTokens: ["GET /admin/tokens"],
603603
listPreReceiveEnvironments: ["GET /admin/pre-receive-environments"],

0 commit comments

Comments
 (0)