githubIntegrationProvider.js 812 B

123456789101112131415161718192021222324252627282930313233
  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: [{description: '*markdown* feature description'}],
  18. author: 'Morty',
  19. noun: 'Installation',
  20. issue_url: 'http://example.com/integration_issue_url',
  21. source_url: 'http://example.com/integration_source_url',
  22. aspects: {
  23. alerts: [
  24. {
  25. type: 'warning',
  26. text: 'This is a an alert example',
  27. },
  28. ],
  29. },
  30. },
  31. ...params,
  32. };
  33. }