mirror of
https://github.com/actions/stale.git
synced 2025-12-10 20:21:20 +00:00
Filter comments by content instead of actor (#519)
* Filter comments by content instead of actor * Remove dead actor code * WIP fix tests * Fix test
This commit is contained in:
@@ -6,7 +6,6 @@ import {IIssuesProcessorOptions} from '../../src/interfaces/issues-processor-opt
|
||||
export class IssuesProcessorMock extends IssuesProcessor {
|
||||
constructor(
|
||||
options: IIssuesProcessorOptions,
|
||||
getActor?: () => Promise<string>,
|
||||
getIssues?: (page: number) => Promise<Issue[]>,
|
||||
listIssueComments?: (
|
||||
issueNumber: number,
|
||||
@@ -19,10 +18,6 @@ export class IssuesProcessorMock extends IssuesProcessor {
|
||||
) {
|
||||
super(options);
|
||||
|
||||
if (getActor) {
|
||||
this.getActor = getActor;
|
||||
}
|
||||
|
||||
if (getIssues) {
|
||||
this.getIssues = getIssues;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user