From 222a48c817f875ddc51f151bcd0b8035060c4abc Mon Sep 17 00:00:00 2001 From: George Reith Date: Tue, 12 Mar 2024 17:21:42 +0000 Subject: [PATCH] exposes RequestError --- packages/github/package-lock.json | 3 ++- packages/github/package.json | 3 ++- packages/github/src/github.ts | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/github/package-lock.json b/packages/github/package-lock.json index a33f8b41..3c1fa487 100644 --- a/packages/github/package-lock.json +++ b/packages/github/package-lock.json @@ -12,7 +12,8 @@ "@actions/http-client": "^2.2.0", "@octokit/core": "^5.0.1", "@octokit/plugin-paginate-rest": "^9.0.0", - "@octokit/plugin-rest-endpoint-methods": "^10.0.0" + "@octokit/plugin-rest-endpoint-methods": "^10.0.0", + "@octokit/request-error": "^5.0.1" }, "devDependencies": { "proxy": "^2.1.1" diff --git a/packages/github/package.json b/packages/github/package.json index 20ae2302..65e9e4ed 100644 --- a/packages/github/package.json +++ b/packages/github/package.json @@ -41,7 +41,8 @@ "@actions/http-client": "^2.2.0", "@octokit/core": "^5.0.1", "@octokit/plugin-paginate-rest": "^9.0.0", - "@octokit/plugin-rest-endpoint-methods": "^10.0.0" + "@octokit/plugin-rest-endpoint-methods": "^10.0.0", + "@octokit/request-error": "^5.0.1" }, "devDependencies": { "proxy": "^2.1.1" diff --git a/packages/github/src/github.ts b/packages/github/src/github.ts index b4ed7133..b98b7e50 100644 --- a/packages/github/src/github.ts +++ b/packages/github/src/github.ts @@ -3,6 +3,7 @@ import {GitHub, getOctokitOptions} from './utils' // octokit + plugins import {OctokitOptions, OctokitPlugin} from '@octokit/core/dist-types/types' +export {RequestError} from '@octokit/request-error'; export const context = new Context.Context()