mirror of
https://github.com/actions/stale.git
synced 2025-12-10 20:21:20 +00:00
Add integration tests
This commit is contained in:
@@ -27,7 +27,7 @@ export class Issue implements IIssue {
|
||||
|
||||
constructor(
|
||||
options: Readonly<IIssuesProcessorOptions>,
|
||||
issue: Readonly<OctokitIssue | Readonly<IIssue>>
|
||||
issue: Readonly<OctokitIssue> | Readonly<IIssue>
|
||||
) {
|
||||
this._options = options;
|
||||
this.title = issue.title;
|
||||
|
||||
@@ -572,9 +572,10 @@ export class IssuesProcessor {
|
||||
});
|
||||
this.statistics?.incrementFetchedItemsCount(issueResult.data.length);
|
||||
|
||||
return issueResult.data.map((issue): Issue => {
|
||||
return new Issue(this.options, issue as Readonly<OctokitIssue>);
|
||||
});
|
||||
return issueResult.data.map(
|
||||
(issue): Issue =>
|
||||
new Issue(this.options, issue as Readonly<OctokitIssue>)
|
||||
);
|
||||
} catch (error) {
|
||||
throw Error(`Getting issues was blocked by the error: ${error.message}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user