Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 61edf26

Browse files
Correctly setting the IsPending value
1 parent 6a4667d commit 61edf26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.InlineReviews/Services/PullRequestSessionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ public async Task<PullRequestReviewCommentModel> EditComment(ILocalRepositoryMod
650650
OriginalCommitId = x.PullRequestReviewComment.OriginalCommit.Oid,
651651
PullRequestReviewId = x.PullRequestReviewComment.PullRequestReview.DatabaseId.Value,
652652
User = user,
653-
IsPending = false,
653+
IsPending = !x.PullRequestReviewComment.PublishedAt.HasValue,
654654
});
655655

656656
var result = await graphql.Run(editComment);

0 commit comments

Comments
 (0)