/**
 * Git 仓库数据源
 */
import type { DataSourceConfig } from '../types';

export const gitRepositoriesConfig: DataSourceConfig = {
  url: '/api/v1/git-repo/list',
  params: { enabled: true },
  transform: (data: any[]) => {
    return data.map((item: any) => ({
      label: `${item.name} (${item.url})`,
      value: item.id,
      url: item.url
    }));
  }
};

