codeOwner.js 832 B

123456789101112131415161718192021222324252627282930
  1. import {GitHubIntegration} from './githubIntegration';
  2. import {Project} from './project';
  3. import {Repository} from './repository';
  4. import {RepositoryProjectPathConfig} from './repositoryProjectPathConfig';
  5. export function CodeOwner({
  6. project = Project(),
  7. repo = Repository(),
  8. integration = GitHubIntegration(),
  9. ...params
  10. } = {}) {
  11. return {
  12. id: '1225',
  13. raw: '',
  14. dateCreated: '2022-11-18T15:05:47.450354Z',
  15. dateUpdated: '2023-02-24T18:43:08.729490Z',
  16. codeMappingId: '11',
  17. provider: 'github',
  18. codeMapping: RepositoryProjectPathConfig({project, repo, integration}),
  19. ownershipSyntax: '',
  20. errors: {
  21. missing_user_emails: [],
  22. missing_external_users: [],
  23. missing_external_teams: [],
  24. teams_without_access: [],
  25. users_without_access: [],
  26. },
  27. ...params,
  28. };
  29. }