githubIntegrationProvider.js 792 B

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