staging-tester / ocean-landing-serve / src/ lib/ migrate-sources.ts

export type MoveSource = {
	id: 'github' | 'gitlab' | 'bitbucket' | 'azure' | 'server';
	name: string;
	mode: string;
	summary: string;
	example: string;
	carried: { title: string; body: string; auto: boolean }[];
};

export const sources: MoveSource[] = [
	{
		id: 'github',
		name: 'GitHub',
		mode: 'We move it for you',
		summary: 'Authorize GitHub, pick repositories or whole organizations, and we copy everything over. Nothing changes on GitHub.',
		example: 'https://github.com/acme-pay/api',
		carried: [
			{ title: 'Code with its whole history', body: 'Every branch, tag and commit, with authors, dates and signatures as they were.', auto: true },
			{ title: 'Issues and pull requests', body: 'With their comments and reviews, so the reasons behind the code come along.', auto: true },
			{ title: 'Private repositories', body: 'Moved the same way, and private on Sailfork.', auto: true },
			{ title: 'Organizations', body: 'Pick an organization and every repository in it comes over together.', auto: true }
		]
	},
	{
		id: 'gitlab',
		name: 'GitLab',
		mode: 'Run the script, or plan it with us',
		summary: 'Paste your repositories below and run the script it writes. Subgroups are fine: the last part of the path becomes the name on Sailfork.',
		example: 'git@gitlab.com:acme-pay/platform/billing.git',
		carried: [
			{ title: 'Code with its whole history', body: 'Every branch and tag, checked against GitLab when the push finishes.', auto: true },
			{ title: 'Self-managed GitLab', body: 'Any address you can clone from works, including your own domain.', auto: true },
			{ title: 'Issues and merge requests', body: 'Tell us what you have and we plan their move with you.', auto: false }
		]
	},
	{
		id: 'bitbucket',
		name: 'Bitbucket',
		mode: 'Run the script, or plan it with us',
		summary: 'Bitbucket Cloud and Data Center both clone over HTTPS or SSH, so the script moves either one.',
		example: 'https://bitbucket.org/acme-pay/ios',
		carried: [
			{ title: 'Code with its whole history', body: 'Every branch and tag, checked against Bitbucket when the push finishes.', auto: true },
			{ title: 'Projects with many repositories', body: 'Paste them all at once; one script moves them in order.', auto: true },
			{ title: 'Pull requests', body: 'Tell us what you have and we plan their move with you.', auto: false }
		]
	},
	{
		id: 'azure',
		name: 'Azure DevOps',
		mode: 'Run the script, or plan it with us',
		summary: 'Use the clone address from Azure Repos. The repository name after _git becomes the name on Sailfork.',
		example: 'https://dev.azure.com/acme-pay/payments/_git/ledger',
		carried: [
			{ title: 'Code with its whole history', body: 'Every branch and tag, checked against Azure Repos when the push finishes.', auto: true },
			{ title: 'Several projects', body: 'Repositories from different projects can land in one Sailfork organization.', auto: true },
			{ title: 'Work items and pull requests', body: 'Tell us what you have and we plan their move with you.', auto: false }
		]
	},
	{
		id: 'server',
		name: 'Your own server',
		mode: 'Run the script',
		summary: 'Gitea, Gerrit, cgit or a bare repository behind SSH. If git clone works against it, the script moves it.',
		example: 'git@git.acme-pay.dev:tools/deploy.git',
		carried: [
			{ title: 'Code with its whole history', body: 'Every branch and tag, checked against your server when the push finishes.', auto: true },
			{ title: 'Nothing exposed', body: 'The script runs on your machine, so your server never has to be reachable from the internet.', auto: true }
		]
	}
];