extensions/github/src/commands.ts/registerCommands
export function registerCommands(gitAPI: GitAPI): vscode.Disposable {
	const disposables: vscode.Disposable[] = [];

	disposables.push(vscode.commands.registerCommand('github.publish', async () => {
		try {
			publishRepository(gitAPI);
		} catch (err) {
			vscode.window.showErrorMessage(err.message);
		}
	}));

	return combinedDisposable(disposables);
}