githubIntegration.tsx 769 B

12345678910111213141516171819202122232425262728293031323334
  1. import {GroupIntegration} from 'sentry/types';
  2. export function GitHubIntegrationFixture(
  3. params: Partial<GroupIntegration> = {}
  4. ): GroupIntegration {
  5. return {
  6. domainName: 'github.com/test-integration',
  7. icon: 'http://example.com/integration_icon.png',
  8. id: '1',
  9. name: 'Test Integration',
  10. provider: {
  11. name: 'GitHub',
  12. key: 'github',
  13. canAdd: true,
  14. features: [],
  15. aspects: {
  16. alerts: [
  17. {
  18. type: 'warning',
  19. text: 'This is a an alert example',
  20. },
  21. ],
  22. },
  23. canDisable: false,
  24. slug: '',
  25. },
  26. externalIssues: [],
  27. accountType: '',
  28. gracePeriodEnd: '',
  29. organizationIntegrationStatus: 'active',
  30. status: 'active',
  31. ...params,
  32. };
  33. }