Merge pull request #859 from kawws/feature/github-app

feat: improve github app validation
This commit is contained in:
Mauricio Siu 2024-12-11 23:25:27 -06:00 committed by GitHub
commit 749dd03fe6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,24 @@ export const AddGithubProvider = () => {
/>
<br />
<div className="flex w-full justify-end">
<div className="flex w-full items-center justify-between">
<a
href={
isOrganization && organizationName
? `https://github.com/organizations/${organizationName}/settings/installations`
: "https://github.com/settings/installations"
}
className={`text-muted-foreground text-sm hover:underline duration-300
${
isOrganization && !organizationName
? "pointer-events-none opacity-50"
: ""
}`}
target="_blank"
rel="noopener noreferrer"
>
Unsure if you already have an app?
</a>
<Button
disabled={isOrganization && organizationName.length < 1}
type="submit"