diff --git a/components/dashboard/settings/github/github-setup.tsx b/components/dashboard/settings/github/github-setup.tsx index 997dbe44..6e9a8058 100644 --- a/components/dashboard/settings/github/github-setup.tsx +++ b/components/dashboard/settings/github/github-setup.tsx @@ -31,6 +31,14 @@ export const generateName = () => { n2[Math.round(Math.random() * (n2.length - 1))] }`; }; +function slugify(text: string) { + return text + .toLowerCase() + .replace(/[\s\^&*()+=!]+/g, "-") + .replace(/[\$.,*+~()'"!:@^&]+/g, "") + .replace(/-+/g, "-") + .replace(/^-+|-+$/g, ""); +} export const GithubSetup = () => { const [isOrganization, setIsOrganization] = useState(false); @@ -98,12 +106,17 @@ export const GithubSetup = () => { your GitHub account. - - Install Github App - +