12345678910111213141516171819202122232425262728293031323334353637383940 |
- import type {ReleaseMeta as ReleaseMetaType} from 'sentry/types';
- export function ReleaseMeta(params: Partial<ReleaseMetaType>): ReleaseMetaType {
- const project = TestStubs.Project();
- return {
- version: 'sentry-android-shop@1.2.0',
- versionInfo: {
- package: 'sentry-android-shop',
- version: {
- raw: '1.2.0',
- major: 1,
- minor: 2,
- patch: 0,
- pre: null,
- buildCode: null,
- components: 3,
- },
- description: '1.2.0',
- buildHash: null,
- },
- projects: [
- {
- id: project.id,
- slug: project.slug,
- name: project.name,
- newGroups: 0,
- platform: project.platform,
- platforms: ['javascript'],
- },
- ],
- newGroups: 0,
- deployCount: 1,
- commitCount: 2,
- released: '2020-03-23T01:02:30Z',
- commitFilesChanged: 17,
- releaseFileCount: 1662,
- isArtifactBundle: false,
- ...params,
- };
- }
|