mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-18 18:04:26 +00:00
fix: gate official badge on GitHub provider type
This commit is contained in:
@@ -451,7 +451,7 @@ export class InstallCommand extends Command {
|
||||
const sourceProvider = detectProvider(this.source);
|
||||
const parsedSource = sourceProvider?.parseSource(this.source);
|
||||
const normalizedSource = parsedSource ? `${parsedSource.owner}/${parsedSource.repo}` : this.source;
|
||||
const isOfficial = officialSources.includes(normalizedSource);
|
||||
const isOfficial = sourceProvider?.type === "github" && officialSources.includes(normalizedSource);
|
||||
|
||||
const scorer = new TrustScorer();
|
||||
for (const skill of skillsToInstall) {
|
||||
|
||||
Reference in New Issue
Block a user