mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
43 lines
999 B
TypeScript
43 lines
999 B
TypeScript
import {ProjectFixture} from 'sentry-fixture/project';
|
|
|
|
import type {ReleaseMeta} from 'sentry/types';
|
|
|
|
export function ReleaseMetaFixture(params: Partial<ReleaseMeta> = {}): ReleaseMeta {
|
|
const project = ProjectFixture();
|
|
return {
|
|
version: '[email protected]',
|
|
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: Number(project.id),
|
|
slug: project.slug,
|
|
name: project.name,
|
|
newGroups: 0,
|
|
platform: project.platform ?? 'android',
|
|
platforms: ['javascript'],
|
|
},
|
|
],
|
|
newGroups: 0,
|
|
deployCount: 1,
|
|
commitCount: 2,
|
|
released: '2020-03-23T01:02:30Z',
|
|
commitFilesChanged: 17,
|
|
releaseFileCount: 1662,
|
|
isArtifactBundle: false,
|
|
...params,
|
|
};
|
|
}
|