Gitea/Forgjo Skills Support #20
@@ -398,7 +398,16 @@ function deriveCanonicalSkillKey(
|
||||
|
||||
const owner = normalizeSkillSlug(asString(metadata?.owner));
|
||||
const repo = normalizeSkillSlug(asString(metadata?.repo));
|
||||
if ((input.sourceType === "github" || input.sourceType === "skills_sh" || sourceKind === "github" || sourceKind === "skills_sh") && owner && repo) {
|
||||
if (
|
||||
(input.sourceType === "github"
|
||||
|| input.sourceType === "skills_sh"
|
||||
|| input.sourceType === "gitea"
|
||||
|| sourceKind === "github"
|
||||
|| sourceKind === "skills_sh"
|
||||
|| sourceKind === "gitea")
|
||||
&& owner
|
||||
&& repo
|
||||
) {
|
||||
return `${owner}/${repo}/${slug}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user