import { json } from "@remix-run/node"; import type { LoaderFunctionArgs } from "@remix-run/node"; import { useLoaderData, Link } from "@remix-run/react"; import { requireUserSession } from "~/lib/session.server"; import { githubApp } from "~/lib/github-app.server"; export async function loader({ request }: LoaderFunctionArgs) { const userSession = await requireUserSession(request); // Generate installation URL const installationUrl = githubApp.getInstallationUrl( `user:${userSession.login}` ); return json({ user: userSession, installationUrl, }); } export default function InstallApp() { const { user, installationUrl } = useLoaderData(); return (

Install GitHub App

← Back to Dashboard

Install Required

To receive webhooks and interact with repositories, you need to install the HugeX GitHub App on your repositories or organization.

What happens when you install?

  • The app will be able to receive webhook events from your selected repositories
  • Events will be associated with your authenticated user account
  • The app can perform actions on your behalf using your user token
  • You can uninstall the app at any time from your GitHub settings

This will open GitHub in a new tab where you can choose which repositories to install the app on. You can install it on specific repositories or your entire organization.

); }