Skip to content

Commit

Permalink
chore: Extend the list of LPVSDetectedLicenseRepository queries (#642)
Browse files Browse the repository at this point in the history
chore: Extend the list of LPVSDetectedLicenseRepository methods

Signed-off-by: Oleg Kopysov <[email protected]>
  • Loading branch information
o-kopysov authored Oct 23, 2024
1 parent 68e0ef8 commit a931e9f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,13 @@ public interface LPVSDetectedLicenseRepository extends JpaRepository<LPVSDetecte
* @return List of {@link LPVSDetectedLicense} associated with the pull request where the license is not null.
*/
List<LPVSDetectedLicense> 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<LPVSDetectedLicense> findByPullRequestAndLicenseConflictIsNotNull(
@Param("pr") LPVSPullRequest pr);
}

0 comments on commit a931e9f

Please sign in to comment.