Skip to content

Commit

Permalink
fix request-error dependency version (#389)
Browse files Browse the repository at this point in the history
* fix request-error dependency version

* bump version
  • Loading branch information
shubhbapna authored Feb 14, 2023
1 parent 1386d0e commit 76b002e
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 84 deletions.
144 changes: 64 additions & 80 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kie/build-chain-action",
"version": "3.0.16",
"version": "3.0.17",
"description": "Library to execute commands based on github projects dependencies.",
"main": "dist/index.js",
"author": "",
Expand Down Expand Up @@ -57,7 +57,7 @@
"@actions/core": "^1.8.2",
"@actions/exec": "^1.1.1",
"@actions/glob": "^0.3.0",
"@octokit/request-error": "^3.0.3",
"@octokit/request-error": "^2.1.0",
"@kie/build-chain-configuration-reader": "^3.0.10",
"@octokit/rest": "^18.12.0",
"@octokit/types": "^6.39.0",
Expand Down
4 changes: 2 additions & 2 deletions src/service/git/github-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export class GithubAPIService {
if (err instanceof RequestError) {
switch (err.status) {
case 401:
reason = "Failed to authenticate with provided token, please use -token argument to provide a new one. You can also check your GITHUB_TOKEN environment variable and check whether the provided token is still valid.";
reason = "Failed to authenticate with provided token, please use --token argument to provide a new one. You can also check your GITHUB_TOKEN environment variable and check whether the provided token is still valid.";
break;
case 404:
reason = "Failed to fetch GitHub URL, please check if the URL used in -url argument is valid and if the token you are using have permissions to access it.";
reason = "Failed to fetch GitHub resource, please check if resource you requested does exits, the URL used in -u argument is valid, and if the token you are using have permissions to access it.";
break;
case 403:
reason = "Failed to fetch resource. Either your github token does not have access to the requested resource or you have reached your github api rate limit.";
Expand Down

0 comments on commit 76b002e

Please sign in to comment.