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

Commit 12cccd2

Browse files
Correctly setting a standalone comment reply's IsPending property
1 parent 18c9269 commit 12cccd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GitHub.InlineReviews/Services/PullRequestSessionService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ public async Task<IPullRequestReviewCommentModel> PostPendingReviewCommentReply(
517517
OriginalCommitId = x.Comment.OriginalCommit.Oid,
518518
PullRequestReviewId = x.Comment.PullRequestReview.DatabaseId.Value,
519519
User = user,
520-
IsPending = false,
520+
IsPending = true,
521521
});
522522

523523
var result = await graphql.Run(addComment);
@@ -593,6 +593,7 @@ public async Task<IPullRequestReviewCommentModel> PostStandaloneReviewCommentRep
593593
var review = await CreatePendingReview(localRepository, user, pullRequestNodeId);
594594
var comment = await PostPendingReviewCommentReply(localRepository, user, review.NodeId, body, inReplyToNodeId);
595595
await SubmitPendingReview(localRepository, user, review.NodeId, null, PullRequestReviewEvent.Comment);
596+
comment.IsPending = false;
596597
return comment;
597598
}
598599

0 commit comments

Comments
 (0)