From a1ae3421a289309acc7b7d23751f98953a1816ef Mon Sep 17 00:00:00 2001 From: Sam Gleske Date: Sun, 28 Jan 2018 13:29:26 -0800 Subject: [PATCH] Fix stale comment body comment for context --- src/main/java/org/jenkinsci/plugins/ghprb/GhprbPullRequest.java | 1 + 1 file changed, 1 insertion(+) 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;