Release Notes
New useGitHubRepoData
hook
- Arguments:
owner: string, repo: string
- Returns:
{
url: string;
starCount: number;
repoName: string | undefined;
icon: JSX.Element;
}
Breaking Changes
- Adjusted the
ProjectUrl
type to:
type ProjectUrls = {
site?: {
url: string;
icon: JSX.Element;
};
repo?: {
owner: string;
name: string;
showStarCount: boolean;
};
};
This allows us to use the useGitHubRepoData
hook to display a star count, given that
project.projectUrls.repo.showStarCount === true