repository.ts 450 B

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