Skip to content

Commit

Permalink
Use license name instead of spdxId
Browse files Browse the repository at this point in the history
The name is easier to read, so we'll use this for the UI/data instead of
the spdxId.

Co-authored-by: Andrew Henry <[email protected]>
  • Loading branch information
ipc103 and ajhenry authored Feb 1, 2024
1 parent d282c77 commit 79f35ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts-backend/src/fetchers/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 79f35ed

Please sign in to comment.