githubIntegration.tsx 851 B

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