{#if !source.githubAppId}
General
Name
HTML URL
API URL
{#if source.apiUrl && source.htmlUrl && source.name}
Create new GitHub App
{/if}
{:else if source.githubAppId}
General
{#if $session.isAdmin}
{loading ? 'Saving...' : 'Save'}
installRepositories(source)} >Change GitHub App Settings
{/if}
Name
HTML URL
API URL
{:else}
installRepositories(source)} >Install Repositories
{/if}