From 79f35edff0ff91916dfb79795d0e28880c4ce9f2 Mon Sep 17 00:00:00 2001 From: Ian Candy Date: Thu, 1 Feb 2024 20:36:39 +0000 Subject: [PATCH] Use license name instead of spdxId The name is easier to read, so we'll use this for the UI/data instead of the spdxId. Co-authored-by: Andrew Henry --- ts-backend/src/fetchers/repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts-backend/src/fetchers/repository.ts b/ts-backend/src/fetchers/repository.ts index 50eeba7..0f39eea 100644 --- a/ts-backend/src/fetchers/repository.ts +++ b/ts-backend/src/fetchers/repository.ts @@ -72,7 +72,7 @@ export const addRepositoriesToResult: Fetcher = async ( [repo.name]: { repositoryName: repo.name, repoNameWithOwner: repo.nameWithOwner, - licenseName: repo.licenseInfo?.spdxId || "No License", + licenseName: repo.licenseInfo?.name || "No License", forksCount: repo.forkCount, watchersCount: repo.watchers.totalCount, starsCount: repo.stargazerCount,