@Component public class

DefaultPullRequestAnnotationHelper

extends Object
implements PullRequestAnnotationHelper
java.lang.Object
   ↳ com.atlassian.bitbucket.internal.codeinsights.annotation.DefaultPullRequestAnnotationHelper

Summary

Public Constructors
DefaultPullRequestAnnotationHelper(ApplicationPropertiesService propertiesService, CacheFactory cacheFactory, ScmService scmService)
Public Methods
@Nonnull DiffResult getDiffResult(PullRequest pullRequest, Set<String> requestedEffectivePaths)
Streams the diff for the PR and returns a map with path -> modified lines.
@EventListener void onPullRequestRescopedEvent(PullRequestRescopedEvent event)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.internal.codeinsights.annotation.PullRequestAnnotationHelper

Public Constructors

public DefaultPullRequestAnnotationHelper (ApplicationPropertiesService propertiesService, CacheFactory cacheFactory, ScmService scmService)

Public Methods

@Nonnull public DiffResult getDiffResult (PullRequest pullRequest, Set<String> requestedEffectivePaths)

Streams the diff for the PR and returns a map with path -> modified lines.

Parameters
pullRequest the pull request to get a diff summary for
requestedEffectivePaths the paths for which to get a summary for
Returns
  • the lines modified by the pull request and is truncated flag

@EventListener public void onPullRequestRescopedEvent (PullRequestRescopedEvent event)