Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #504 from jmdh/fix-stale-comment-body
Fix for stale ghprbCommentBody values (#233/JENKINS-40802)
  • Loading branch information
samrocketman committed Jan 28, 2018
2 parents 80c0765 + a1ae342 commit c943b30
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -367,6 +367,8 @@ 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;
commentsChecked = checkComments(pullRequest, lastUpdateTime);
Expand Down

0 comments on commit c943b30

Please sign in to comment.