repository.ts 469 B

12345678910111213141516
  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. externalId: '1',
  11. dateCreated: '',
  12. integrationId: '',
  13. ...params,
  14. };
  15. }