repository.ts 510 B

1234567891011121314151617
  1. import type {Repository} from 'sentry/types/integrations';
  2. import {RepositoryStatus} from 'sentry/types/integrations';
  3. export function RepositoryFixture(params: Partial<Repository> = {}): Repository {
  4. return {
  5. id: '4',
  6. name: 'example/repo-name',
  7. provider: {id: '1', name: 'github'},
  8. url: 'https://github.com/example/repo-name',
  9. status: RepositoryStatus.ACTIVE,
  10. externalSlug: 'example/repo-name',
  11. externalId: '1',
  12. dateCreated: '',
  13. integrationId: '',
  14. ...params,
  15. };
  16. }