diff --git a/src/main/java/com/lpvs/repository/LPVSDetectedLicenseRepository.java b/src/main/java/com/lpvs/repository/LPVSDetectedLicenseRepository.java index bb096fb3..64615227 100644 --- a/src/main/java/com/lpvs/repository/LPVSDetectedLicenseRepository.java +++ b/src/main/java/com/lpvs/repository/LPVSDetectedLicenseRepository.java @@ -69,4 +69,13 @@ public interface LPVSDetectedLicenseRepository extends JpaRepository findByPullRequestAndLicenseIsNotNull(@Param("pr") LPVSPullRequest pr); + + /** + * Find detected license conflicts associated with a specific pull request where the license conflict is not null. + * + * @param pr The {@link LPVSPullRequest} to retrieve detected license conflicts for. + * @return List of {@link LPVSDetectedLicense} associated with the pull request where the license conflict is not null. + */ + List findByPullRequestAndLicenseConflictIsNotNull( + @Param("pr") LPVSPullRequest pr); }