releaseMeta.ts 940 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import type {ReleaseMeta as ReleaseMetaType} from 'sentry/types';
  2. export function ReleaseMeta(params: Partial<ReleaseMetaType>): ReleaseMetaType {
  3. const project = TestStubs.Project();
  4. return {
  5. version: 'sentry-android-shop@1.2.0',
  6. versionInfo: {
  7. package: 'sentry-android-shop',
  8. version: {
  9. raw: '1.2.0',
  10. major: 1,
  11. minor: 2,
  12. patch: 0,
  13. pre: null,
  14. buildCode: null,
  15. components: 3,
  16. },
  17. description: '1.2.0',
  18. buildHash: null,
  19. },
  20. projects: [
  21. {
  22. id: project.id,
  23. slug: project.slug,
  24. name: project.name,
  25. newGroups: 0,
  26. platform: project.platform,
  27. platforms: ['javascript'],
  28. },
  29. ],
  30. newGroups: 0,
  31. deployCount: 1,
  32. commitCount: 2,
  33. released: '2020-03-23T01:02:30Z',
  34. commitFilesChanged: 17,
  35. releaseFileCount: 1662,
  36. isArtifactBundle: false,
  37. ...params,
  38. };
  39. }