Skip to content

Commit

Permalink
Fix stale comment body comment for context
Browse files Browse the repository at this point in the history
samrocketman committed Jan 28, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 753a77f commit a1ae342
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -339,6 +339,7 @@ private void updatePR(GHPullRequest ghpr, GHIssueComment comment, boolean isWebh
// check that comment. Otherwise check the full set since the last
// time we updated (which might have just happened).
int commentsChecked = 0;
//Setting to null fixes ghprbCommentBody containing stale values; ref https://github.com/jenkinsci/ghprb-plugin/pull/504
commentBody = null;
if (wasUpdated && (!isWebhook || !initialCommentCheckDone)) {
initialCommentCheckDone = true;

0 comments on commit a1ae342

Please sign in to comment.