123456789101112131415161718192021222324252627282930313233 |
- import {GitHubIntegration} from 'sentry-fixture/githubIntegration';
- import {Project} from 'sentry-fixture/project';
- import {Repository} from 'sentry-fixture/repository';
- import {RepositoryProjectPathConfig} from 'sentry-fixture/repositoryProjectPathConfig';
- import {type CodeOwner as TCodeOwner} from 'sentry/types';
- export function CodeOwner({
- project = Project(),
- repo = Repository(),
- integration = GitHubIntegration(),
- ...params
- } = {}): TCodeOwner {
- return {
- id: '1225',
- raw: '',
- dateCreated: '2022-11-18T15:05:47.450354Z',
- dateUpdated: '2023-02-24T18:43:08.729490Z',
- codeMappingId: '11',
- provider: 'github',
- codeMapping: RepositoryProjectPathConfig({project, repo, integration}),
- codeOwnersUrl: 'https://github.com/getsentry/sentry/blob/master/.github/CODEOWNERS',
- ownershipSyntax: '',
- errors: {
- missing_user_emails: [],
- missing_external_users: [],
- missing_external_teams: [],
- teams_without_access: [],
- users_without_access: [],
- },
- ...params,
- };
- }
|