From 26e814a426fad4e282b96fabec0ba05dd36ee9bd Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Thu, 14 May 2026 11:41:39 -0400 Subject: [PATCH] fix(skills): drop GitHub-only regex gate on PAT input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PAT input on the skill import flow was hidden by a regex that matched github.com or org/repo shorthand. Self-hosted Gitea/Forgejo/GitLab sources got no auth field at all. Always show the input when a source is entered, and label it generically ('Personal access token') instead of 'GitHub PAT'. UI only — backend already accepts any token via /skills/:id/auth and /companies/:companyId/skills POST {source, authToken}. --- ui/src/pages/CompanySkills.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/pages/CompanySkills.tsx b/ui/src/pages/CompanySkills.tsx index 0ce0c91a..ed6429be 100644 --- a/ui/src/pages/CompanySkills.tsx +++ b/ui/src/pages/CompanySkills.tsx @@ -1345,13 +1345,13 @@ export function CompanySkills() { {importSkill.isPending ? : "Add"} - {source.trim().length > 0 && /github\.com|^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_.-]+/.test(source.trim()) && ( + {source.trim().length > 0 && (
setImportAuthToken(event.target.value)} - placeholder="GitHub PAT (optional, for private repos)" + placeholder="Personal access token (optional, for private repos)" className="w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground" autoComplete="off" />