Skip to content

Commit

Permalink
fix licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame committed Feb 14, 2023
1 parent 95d773d commit c584de6
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/basic-validation.yml
Expand Up @@ -15,5 +15,3 @@ jobs:
call-basic-validation:
name: Basic validation
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
with:
node-version: v16
2 changes: 0 additions & 2 deletions .github/workflows/check-dist.yml
Expand Up @@ -15,5 +15,3 @@ jobs:
call-check-dist:
name: Check dist/
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
with:
node-version: v16
2 changes: 0 additions & 2 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -12,5 +12,3 @@ jobs:
call-codeQL-analysis:
name: CodeQL analysis
uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main
with:
node-version: v16
2 changes: 0 additions & 2 deletions .github/workflows/licensed.yml
Expand Up @@ -13,5 +13,3 @@ jobs:
call-licensed:
name: Licensed
uses: actions/reusable-workflows/.github/workflows/licensed.yml@main
with:
node-version: v16
4 changes: 3 additions & 1 deletion dist/index.js
Expand Up @@ -671,7 +671,9 @@ class IssuesProcessor {
return issueResult.data.map((issue) => new issue_1.Issue(this.options, issue));
}
catch (error) {
throw Error(`Get issues for repo error: ${error.message}`);
const rethrow = Error(`Getting issues was blocked by the error: ${error.message}`);
rethrow.stack = `${error.stack.split('\n').slice(0, 2).join('\n')}\n${error.stack}`;
throw error;
}
});
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -31,8 +31,8 @@
"stale"
],
"engines": {
"node": "v16",
"npm": "v8"
"node": "16",
"npm": "8"
},
"author": "GitHub",
"license": "MIT",
Expand Down
8 changes: 7 additions & 1 deletion src/classes/issues-processor.ts
Expand Up @@ -557,7 +557,13 @@ export class IssuesProcessor {
(issue: Readonly<OctokitIssue>): Issue => new Issue(this.options, issue)
);
} catch (error) {
throw Error(`Get issues for repo error: ${error.message}`);
const rethrow = Error(
`Getting issues was blocked by the error: ${error.message}`
);
rethrow.stack = `${error.stack.split('\n').slice(0, 2).join('\n')}\n${
error.stack
}`;
throw error;
}
}

Expand Down

0 comments on commit c584de6

Please sign in to comment.