Interface PullComments


@Immutable public interface PullComments
GitHub pull comments.
Since:
0.8
See Also:
  • Method Details

    • pull

      Pull pull()
      Pull we're in.
      Returns:
      Pull
    • get

      PullComment get(int number)
      Get specific pull comment by number.
      Parameters:
      number - Pull comment number
      Returns:
      Pull comment
      See Also:
    • iterate

      Iterable<PullComment> iterate(Map<String,String> params)
      Iterate all pull comments for this repo.
      Parameters:
      params - Iterating parameters, as specified by API
      Returns:
      Iterable of pull comments
      See Also:
    • iterate

      Iterable<PullComment> iterate(int number, Map<String,String> params)
      Iterate all pull comments for a pull request.
      Parameters:
      number - Pull comment number
      params - Iterating parameters, as specified by API
      Returns:
      Iterable of pull comments
      See Also:
    • post

      PullComment post(String body, String commit, String path, int position) throws IOException
      Post a new pull comment.
      Parameters:
      body - Body of it
      commit - Commit ID (SHA) of it
      path - Path of the file to comment on
      position - Line index in the diff to comment on
      Returns:
      PullComment just created
      Throws:
      IOException - If there is any I/O problem
      See Also:
      Suppressed Checkstyle violations:
      ParameterNumberCheck (7 lines)
    • reply

      PullComment reply(String body, int comment) throws IOException
      Create a new comment as a reply to an existing pull comment.
      Parameters:
      body - Body of it
      comment - Commit ID (SHA) of it
      Returns:
      PullComment just created
      Throws:
      IOException - If there is any I/O problem
      See Also:
    • remove

      void remove(int number) throws IOException
      Removes a pull comment by ID.
      Parameters:
      number - The ID of the pull comment to delete.
      Throws:
      IOException - If there is any I/O problem.