repositoryProjectPathConfig.js 390 B

12345678910111213141516
  1. export function RepositoryProjectPathConfig(params) {
  2. const {project, repo, integration} = params;
  3. return {
  4. id: '2',
  5. projectId: project.id,
  6. projectSlug: project.slug,
  7. repoId: repo.id,
  8. repoName: repo.name,
  9. integrationId: integration.id,
  10. provider: integration.provider,
  11. stackRoot: '',
  12. sourceRoot: '',
  13. defaultBranch: 'master',
  14. ...params,
  15. };
  16. }