Skip to content

Commit

Permalink
Update lint.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealAmazonKendra authored Feb 10, 2023
1 parent 45d4f89 commit d857295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/@aws-cdk/prlint/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export class PullRequestLinter {
*/
private async findExistingReview(): Promise<Review | undefined> {
const reviews = await this.client.pulls.listReviews(this.prParams);
return reviews.data.find((review) => review.user?.login === 'aws-cdk-automation' && review.state !== 'DISMISSED') as Review;
return reviews.data.find((review) => (review.user?.login === 'github-actions[bot]' || review.user?.login === 'TheRealAmazonKendra') && review.state !== 'DISMISSED') as Review;
}

/**
Expand All @@ -255,7 +255,7 @@ export class PullRequestLinter {
*/
private async findExistingComment(): Promise<Comment | undefined> {
const comments = await this.client.issues.listComments(this.issueParams);
return comments.data.find((comment) => comment.user?.login === 'aws-cdk-automation' && comment.body?.startsWith('The pull request linter fails with the following errors:')) as Comment;
return comments.data.find((comment) => (comment.user?.login === 'github-actions[bot]' || comment.user?.login === 'TheRealAmazonKendra') && comment.body?.startsWith('The pull request linter fails with the following errors:')) as Comment;
}

/**
Expand Down

0 comments on commit d857295

Please sign in to comment.