Skip to content

Commit 29d3716

Browse files
authored
fix: reviewer_comments_count (#10)
1 parent 63b2265 commit 29d3716

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/github/client.rs

+6
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,12 @@ impl Client {
329329
.iter()
330330
.filter(|item| match item {
331331
Some(item) => {
332+
if item.state
333+
== pull_requests_query::PullRequestReviewState::APPROVED
334+
&& item.body.is_empty()
335+
{
336+
return false;
337+
}
332338
if item.author.as_ref().is_none() {
333339
return false;
334340
}

src/github/gql/pull_requests_query.graphql

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ query PullRequestsQuery($first: Int!, $after: String, $query: String!, $threshol
4848
reviews(first: $threshold) {
4949
totalCount
5050
nodes {
51+
body
5152
author {
5253
__typename
5354
login

0 commit comments

Comments
 (0)