Class StaleCommentResolver

java.lang.Object
org.jenkinsci.plugins.sonargerrit.gerrit.StaleCommentResolver

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class StaleCommentResolver extends Object
Resolves the unresolved comment threads opened by this plugin whose issue is no longer reported.
Author:
Réda Housni Alaoui
  • Constructor Summary

    Constructors
    Constructor
    Description
    StaleCommentResolver(int ownAccountId, int reviewedPatchSet, Map<String,List<me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.common.CommentInfo>> changeCommentsByPath)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<Integer,me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.api.changes.ReviewInput>
    amendReviews(me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.api.changes.ReviewInput reviewedPatchSetReview)
    Amends reviewedPatchSetReview, and adds a review for each older patch set holding a stale thread.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StaleCommentResolver

      public StaleCommentResolver(int ownAccountId, int reviewedPatchSet, Map<String,List<me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.common.CommentInfo>> changeCommentsByPath)
  • Method Details

    • amendReviews

      public Map<Integer,me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.api.changes.ReviewInput> amendReviews(me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.api.changes.ReviewInput reviewedPatchSetReview)
      Amends reviewedPatchSetReview, and adds a review for each older patch set holding a stale thread. Gerrit requires a reply to be posted on the patch set of the comment it replies to.
      Returns:
      The reviews to post, by patch set number