Class ViolationCommentsToBitbucketCloudApi
java.lang.Object
se.bjurr.violations.comments.bitbucketcloud.lib.ViolationCommentsToBitbucketCloudApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionse.bjurr.violations.lib.ViolationsLoggerbooleanbooleanbooleanbooleanbooleanvoidwithApiToken(String apiToken) withCommentTemplate(String commentTemplate) withCreateCommentWithAllSingleFileComments(boolean createCommentWithAllSingleFileComments) withCreateSingleFileComment(boolean shouldCreateSingleFileComment) withKeepOldComments(boolean shouldKeepOldComments) withMaxCommentSize(Integer maxCommentSize) withMaxNumberOfViolations(Integer maxNumberOfViolations) withPassword(String password) withPullRequestId(String pullRequestId) withRepositorySlug(String repositorySlug) withShouldCommentOnlyChangedContent(boolean shouldCommentOnlyChangedContent) withShouldCommentOnlyChangedFiles(boolean shouldCommentOnlyChangedFiles) withUsername(String username) withViolations(Set<se.bjurr.violations.lib.model.Violation> violations) withViolationsLogger(se.bjurr.violations.lib.ViolationsLogger violationsLogger) withWorkspace(String workspace)
-
Constructor Details
-
ViolationCommentsToBitbucketCloudApi
public ViolationCommentsToBitbucketCloudApi()
-
-
Method Details
-
violationCommentsToBitbucketCloudApi
-
getUsername
-
getPassword
-
getApiToken
-
getWorkspace
-
getRepositorySlug
-
getPullRequestId
-
shouldCreateCommentWithAllSingleFileComments
public boolean shouldCreateCommentWithAllSingleFileComments() -
shouldCreateSingleFileComment
public boolean shouldCreateSingleFileComment() -
shouldKeepOldComments
public boolean shouldKeepOldComments() -
findCommentTemplate
-
getMaxCommentSize
-
getMaxNumberOfViolations
-
getViolationsLogger
public se.bjurr.violations.lib.ViolationsLogger getViolationsLogger() -
shouldCommentOnlyChangedContent
public boolean shouldCommentOnlyChangedContent() -
withPassword
-
withUsername
-
withApiToken
-
withViolationsLogger
public ViolationCommentsToBitbucketCloudApi withViolationsLogger(se.bjurr.violations.lib.ViolationsLogger violationsLogger) -
withViolations
public ViolationCommentsToBitbucketCloudApi withViolations(Set<se.bjurr.violations.lib.model.Violation> violations) -
withCommentTemplate
-
withCreateCommentWithAllSingleFileComments
public ViolationCommentsToBitbucketCloudApi withCreateCommentWithAllSingleFileComments(boolean createCommentWithAllSingleFileComments) -
withMaxCommentSize
-
withMaxNumberOfViolations
public ViolationCommentsToBitbucketCloudApi withMaxNumberOfViolations(Integer maxNumberOfViolations) -
withWorkspace
-
withRepositorySlug
-
withPullRequestId
-
withCreateSingleFileComment
public ViolationCommentsToBitbucketCloudApi withCreateSingleFileComment(boolean shouldCreateSingleFileComment) -
withKeepOldComments
-
withShouldCommentOnlyChangedContent
public ViolationCommentsToBitbucketCloudApi withShouldCommentOnlyChangedContent(boolean shouldCommentOnlyChangedContent) -
toPullRequest
public void toPullRequest() -
shouldCommentOnlyChangedFiles
public boolean shouldCommentOnlyChangedFiles() -
withShouldCommentOnlyChangedFiles
public ViolationCommentsToBitbucketCloudApi withShouldCommentOnlyChangedFiles(boolean shouldCommentOnlyChangedFiles)
-