mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +03:00
* start new github integration * query/mutation updates * progress * branch management * update codegen * progress * progress * Refactor GitHub integration URLs * Refactor GitHubIntegrationAuthorize component * Updates * Do not remove GitHub connection when creating new one * Deleting a GH connection when branching is enabled for the project, will also disable branching for that project * Add link to configure connection from org integration settings page * Slight refactor * Support updating CWD path * Change cwd_path to workdir and disallow empty values * Allow for triggering branches on supabase directory changes only * Pass missing supabaseChangesOnly value * Small style fix * Add Authorization GitHub step * Small change * Fix supabase integrations form in project settings * Revert URLa nd client ID * Fix UI issues --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
export const integrationKeys = {
|
|
integrationsListWithOrg: (orgSlug: string | undefined) =>
|
|
['organizations', orgSlug, 'integrations'] as const,
|
|
integrationsList: () => ['organizations', 'integrations'] as const,
|
|
vercelProjectList: (organization_integration_id: string | undefined) =>
|
|
['organizations', organization_integration_id, 'vercel-projects'] as const,
|
|
vercelConnectionsList: (organization_integration_id: string | undefined) =>
|
|
['organizations', organization_integration_id, 'vercel-connections'] as const,
|
|
githubBranch: (
|
|
organization_integration_id: string | undefined,
|
|
repo_owner: string,
|
|
repo_name: string,
|
|
branch_name: string
|
|
) => [
|
|
'organizations',
|
|
organization_integration_id,
|
|
'branches',
|
|
repo_owner,
|
|
repo_name,
|
|
branch_name,
|
|
],
|
|
githubAuthorization: () => ['github-authorization'] as const,
|
|
githubRepositoriesList: () => ['github-repositories'] as const,
|
|
githubBranchesList: (connectionId: number | undefined) => ['github-branches', connectionId],
|
|
githubPullRequestsList: (connectionId: number | undefined, prNumbers: number[] | undefined) => [
|
|
'github-pull-requests',
|
|
connectionId,
|
|
{ prNumbers },
|
|
],
|
|
githubConnectionsList: (organizationId: number | undefined) =>
|
|
['organizations', organizationId, 'github-connections'] as const,
|
|
}
|