-
Notifications
You must be signed in to change notification settings - Fork 731
Expand file tree
/
Copy pathconfig.js
More file actions
54 lines (51 loc) · 1.71 KB
/
config.js
File metadata and controls
54 lines (51 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import GithubConnect from './components/github-connect.vue';
export default {
enabled: true,
name: 'GitHub',
backgroundColor: '#E5E7EB',
borderColor: '#E5E7EB',
description:
'Connect GitHub to sync profile information, stars, forks, pull requests, issues, and discussions.',
onboard: {
description: `GitHub is one of the richest places for developer activity and information.
Connect GitHub to track all relevant activities with no historical import limitations like repo stars, discussions, comments, and more.`,
image: '/images/integrations/onboard/onboard-github-preview.png',
highlight: true,
},
image:
'https://cdn-icons-png.flaticon.com/512/25/25231.png',
connectComponent: GithubConnect,
url: ({ username }) => (username ? `https://github.com/${username}` : null),
chartColor: '#111827',
showProfileLink: true,
activityDisplay: {
showLinkToUrl: true,
},
conversationDisplay: {
showLabels: true,
showConversationAttributes: true,
separatorContent: 'activity',
replyContent: (conversation) => {
const activities = conversation.lastReplies || conversation.activities;
return {
icon: 'ri-chat-4-line',
copy: 'comment',
number: activities.reduce((acc, activity) => {
if (activity.type.includes('comment')) {
return acc + 1;
}
return acc;
}, 0),
};
},
attributes: (attributes) => ({
changes: attributes.changedFiles,
changesCopy: 'file change',
insertions: attributes.additions,
deletions: attributes.deletions,
}),
},
organization: {
handle: (identity) => (identity.url ? identity.url.split('/').at(-1) : identity.name),
},
};