mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
17 lines
450 B
TypeScript
17 lines
450 B
TypeScript
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,
|
|
};
|
|
}
|