Skip to content

Commit

Permalink
Fix stale comment body comment for context
Browse files Browse the repository at this point in the history
  • Loading branch information
samrocketman committed Jan 28, 2018
1 parent 753a77f commit a1ae342
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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;
Expand Down

0 comments on commit a1ae342

Please sign in to comment.