From cd7e79db6f6a18c3523538c6f3e7aa7c37bf7109 Mon Sep 17 00:00:00 2001 From: Octokit Bot <33075676+octokitbot@users.noreply.github.com> Date: Mon, 30 Nov 2020 16:33:47 -0800 Subject: [PATCH] fix: update to @octokit/openapi v1.0.3 (#13) --- cache/openapi-schema.json | 2 +- package.json | 2 +- scripts/update-package.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cache/openapi-schema.json b/cache/openapi-schema.json index 636e49a85..a51340a23 100644 --- a/cache/openapi-schema.json +++ b/cache/openapi-schema.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "1.0.2", + "version": "1.0.3", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, diff --git a/package.json b/package.json index a3cfe2ae9..50533cdf0 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,6 @@ "branches": "main" }, "octokit": { - "openapi-version": "1.0.2" + "openapi-version": "1.0.3" } } diff --git a/scripts/update-package.js b/scripts/update-package.js index 3ed89e068..2fe394866 100644 --- a/scripts/update-package.js +++ b/scripts/update-package.js @@ -10,6 +10,6 @@ if (!pkg.octokit) { pkg.octokit = {}; } -pkg.octokit["openapi-version"] = process.env.VERSION; +pkg.octokit["openapi-version"] = process.env.VERSION.replace(/^v/, ""); writeFileSync("package.json", JSON.stringify(pkg, null, 2) + "\n");