Fix failing tests (#266)

This commit is contained in:
Ross Brodbeck
2021-01-15 07:35:41 -05:00
committed by GitHub
parent b5b956deb3
commit 546a4e9fd6
3 changed files with 106 additions and 45 deletions

View File

@@ -309,8 +309,7 @@ export class IssueProcessor {
const comments = await this.listIssueComments(issue.number, sinceDate);
const filteredComments = comments.filter(
comment =>
comment.user.type === 'User' && comment.user.login !== actor
comment => comment.user.type === 'User' && comment.user.login !== actor
);
core.info(
@@ -347,10 +346,10 @@ export class IssueProcessor {
try {
actor = await this.client.users.getAuthenticated();
} catch (error) {
return context.actor
return context.actor;
}
return actor.data.login
return actor.data.login;
}
// grab issues from github in baches of 100