repository.ts 448 B

123456789101112131415
  1. import {Repository as RepositoryType, RepositoryStatus} from 'sentry/types';
  2. export function Repository(params: Partial<RepositoryType> = {}): RepositoryType {
  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. dateCreated: '',
  11. integrationId: '',
  12. ...params,
  13. };
  14. }