Skip to content

Commit d901397

Browse files
Filter comments by content instead of actor (#519)
* Filter comments by content instead of actor * Remove dead actor code * WIP fix tests * Fix test
1 parent 678bfc7 commit d901397

11 files changed

+122
-160
lines changed

__tests__/any-of-labels.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,6 @@ class IssuesProcessorBuilder {
11391139
build(): IssuesProcessorMock {
11401140
return new IssuesProcessorMock(
11411141
this._options,
1142-
async () => 'abot',
11431142
async p => (p === 1 ? this._issues : []),
11441143
async () => [],
11451144
async () => new Date().toDateString()

__tests__/assignees.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ describe('assignees options', (): void => {
4848
const setProcessor = () => {
4949
processor = new IssuesProcessorMock(
5050
opts,
51-
async () => 'abot',
5251
async p => (p === 1 ? testIssueList : []),
5352
async () => [],
5453
async () => new Date().toDateString()

__tests__/classes/issues-processor-mock.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {IIssuesProcessorOptions} from '../../src/interfaces/issues-processor-opt
66
export class IssuesProcessorMock extends IssuesProcessor {
77
constructor(
88
options: IIssuesProcessorOptions,
9-
getActor?: () => Promise<string>,
109
getIssues?: (page: number) => Promise<Issue[]>,
1110
listIssueComments?: (
1211
issueNumber: number,
@@ -19,10 +18,6 @@ export class IssuesProcessorMock extends IssuesProcessor {
1918
) {
2019
super(options);
2120

22-
if (getActor) {
23-
this.getActor = getActor;
24-
}
25-
2621
if (getIssues) {
2722
this.getIssues = getIssues;
2823
}

0 commit comments

Comments
 (0)