githubIntegrationProvider.tsx 1009 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {IntegrationProvider} from 'sentry/types';
  2. export function GitHubIntegrationProvider(
  3. params: Partial<IntegrationProvider> = {}
  4. ): IntegrationProvider {
  5. return {
  6. key: 'github',
  7. slug: 'github',
  8. name: 'GitHub',
  9. canAdd: true,
  10. features: [],
  11. setupDialog: {
  12. url: '/github-integration-setup-uri/',
  13. width: 100,
  14. height: 100,
  15. },
  16. canDisable: true,
  17. metadata: {
  18. description: '*markdown* formatted _description_',
  19. features: [
  20. {
  21. description: '*markdown* feature description',
  22. featureGate: 'integrations-commits',
  23. featureId: 3,
  24. },
  25. ],
  26. author: 'Morty',
  27. noun: 'Installation',
  28. issue_url: 'http://example.com/integration_issue_url',
  29. source_url: 'http://example.com/integration_source_url',
  30. aspects: {
  31. alerts: [
  32. {
  33. type: 'warning',
  34. text: 'This is a an alert example',
  35. },
  36. ],
  37. },
  38. },
  39. ...params,
  40. };
  41. }