diff --git a/src/main/java/org/jenkinsci/plugins/ghprb/GhprbPullRequest.java b/src/main/java/org/jenkinsci/plugins/ghprb/GhprbPullRequest.java index 7022a296b..8a8603232 100644 --- a/src/main/java/org/jenkinsci/plugins/ghprb/GhprbPullRequest.java +++ b/src/main/java/org/jenkinsci/plugins/ghprb/GhprbPullRequest.java @@ -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;