Add repositoriesMatch helper