mirror of
https://github.com/ivabus/gui
synced 2025-06-08 00:00:27 +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,
|
...pkg,
|
||||||
readme_md: readmeMd,
|
readme_md: readmeMd,
|
||||||
synced: true,
|
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) {
|
if (updatedPackage.github) {
|
||||||
const [owner, repo] = pkg.github.split("/");
|
const [owner, repo] = updatedPackage.github.split("/");
|
||||||
const [readme, contributors, repoData] = await Promise.all([
|
const [readme, contributors, repoData] = await Promise.all([
|
||||||
getReadme(owner, repo),
|
getReadme(owner, repo),
|
||||||
getContributors(owner, repo),
|
getContributors(owner, repo),
|
||||||
|
|
Loading…
Reference in a new issue