Skip to content
Permalink
Browse files
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 c943b3038b98f73b183b527d6ae3da7d58667e6e
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/org/jenkinsci/plugins/ghprb/GhprbPullRequest.java
@@ -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);

0 comments on commit c943b30

Please sign in to comment.