codeOwner.js 921 B

12345678910111213141516171819202122232425262728293031
  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. codeOwnersUrl: 'https://github.com/getsentry/sentry/blob/master/.github/CODEOWNERS',
  20. ownershipSyntax: '',
  21. errors: {
  22. missing_user_emails: [],
  23. missing_external_users: [],
  24. missing_external_teams: [],
  25. teams_without_access: [],
  26. users_without_access: [],
  27. },
  28. ...params,
  29. };
  30. }