How can i know conflict status on pull request in a bitbucket server?

How can i know conflict status on pull request in a bitbucket server?

i tried like this

private final PullRequestService pullRequestService;

private MergeCheck(PullRequestService pullRequestService){
    this.pullRequestService = pullRequestService;
}


@Nonnull
@Override
public RepositoryHookResult preUpdate(@Nonnull PreRepositoryHookContext context,
                                      @Nonnull PullRequestMergeHookRequest request) {


pullRequestService.canMerge(request.getRepository().getId(),request.getPullRequest().getId()).isConflicted());

but, i get DB Error

Hi,

You have now posted the same question multiple times. Could you show us the complete stack trace of the database error, as well as some more information about what you intend to achieve?

It seems you want to implement a pull request merge check, which checks if it is indeed mergeable… what I do not know is if this merge check will ever run if the pull request has a conflict as you cannot press “merge” on a conflicted pull request in the UI. But I am not quite sure there.