12345678910111213141516 |
- import {Repository, RepositoryStatus} from 'sentry/types';
- export function RepositoryFixture(params: Partial<Repository> = {}): Repository {
- return {
- id: '4',
- name: 'example/repo-name',
- provider: {id: '1', name: 'github'},
- url: 'https://github.com/example/repo-name',
- status: RepositoryStatus.ACTIVE,
- externalSlug: 'example/repo-name',
- externalId: '1',
- dateCreated: '',
- integrationId: '',
- ...params,
- };
- }
|