githubIntegrationProvider.js 897 B

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