mirror of
https://github.com/ivabus/gui
synced 2025-04-23 14:07:14 +03:00
check github url from package fullname (#500)
Co-authored-by: neil molina <neil@neils-MacBook-Pro.local>
This commit is contained in:
parent
45828b3f40
commit
7a64d6c12a
1 changed files with 7 additions and 3 deletions
|
@ -74,10 +74,14 @@ To read more about this package go to [${guiPkg.homepage}](${guiPkg.homepage}).
|
|||
...pkg,
|
||||
readme_md: readmeMd,
|
||||
synced: true,
|
||||
github: pkg.github ? trimGithubSlug(pkg.github) : ""
|
||||
github: pkg.github
|
||||
? trimGithubSlug(pkg.github)
|
||||
: pkg.full_name?.includes("github.com")
|
||||
? trimGithubSlug(pkg.full_name.split("github.com/")[1])
|
||||
: ""
|
||||
};
|
||||
if (pkg.github) {
|
||||
const [owner, repo] = pkg.github.split("/");
|
||||
if (updatedPackage.github) {
|
||||
const [owner, repo] = updatedPackage.github.split("/");
|
||||
const [readme, contributors, repoData] = await Promise.all([
|
||||
getReadme(owner, repo),
|
||||
getContributors(owner, repo),
|
||||
|
|
Loading…
Reference in a new issue