repositoryProjectPathConfig.js 371 B

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