Skip to content

Commit

Permalink
fix: removing LGTM comments with reviews (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Aug 30, 2022
1 parent 7da7d0a commit 70b1c01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api-review-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ export async function addOrUpdateAPIReviewCheck(
repo,
pull_number: pr.number,
})
).data.filter(({ user }) => members.includes(user.login));
).data.filter(({ user, body }) => {
return members.includes(user.login) && body.length !== 0;
});

// Filter comments by those from members of the API Working Group.
const comments = (
await octokit.issues.listComments({
owner,
Expand Down

0 comments on commit 70b1c01

Please sign in to comment.