Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions services/libs/integrations/src/integrations/activityTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,14 @@ export const DEFAULT_ACTIVITY_TYPE_SETTINGS: DefaultActivityTypes = {
},
calculateSentiment: true,
},
[GithubActivityType.MENTION]: {
display: {
default: 'mentioned you on GitHub',
short: 'mentioned you',
channel: '',
},
calculateSentiment: true,
},
[GitActivityType.AUTHORED_COMMIT]: {
display: {
default: 'authored a commit in {channel}',
Expand Down Expand Up @@ -699,6 +707,14 @@ export const DEFAULT_ACTIVITY_TYPE_SETTINGS: DefaultActivityTypes = {
},
calculateSentiment: true,
},
[LinkedinActivityType.MENTION]: {
display: {
default: 'mentioned you on LinkedIn',
short: 'mentioned you',
channel: '',
},
calculateSentiment: true,
},
},
[PlatformType.REDDIT]: {
[RedditActivityType.COMMENT]: {
Expand Down
3 changes: 3 additions & 0 deletions services/libs/integrations/src/integrations/github/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ export const GITHUB_GRID: Record<GithubActivityType, IActivityScoringGrid> = {
[GithubActivityType.AUTHORED_COMMIT]: {
score: 2,
},
[GithubActivityType.MENTION]: {
score: 6,
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export enum GithubActivityType {
ISSUE_COMMENT = 'issue-comment',
DISCUSSION_COMMENT = 'discussion-comment',
AUTHORED_COMMIT = 'authored-commit',
MENTION = 'mention',
}

export interface GithubPullRequest {
Expand Down
3 changes: 3 additions & 0 deletions services/libs/integrations/src/integrations/linkedin/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ export const LINKEDIN_GRID: Record<LinkedinActivityType, IActivityScoringGrid> =
[LinkedinActivityType.REACTION]: {
score: 1,
},
[LinkedinActivityType.MENTION]: {
score: 6,
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
export enum LinkedinActivityType {
COMMENT = 'comment',
REACTION = 'reaction',
MENTION = 'mention',
}

export enum LinkedinStreamType {
Expand Down
4 changes: 4 additions & 0 deletions services/libs/types/src/enums/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export enum PlatformType {
GITLAB = 'gitlab',
FACEBOOK = 'facebook',
OTHER = 'other',
OCTOLENS = 'octolens',
}

export type CodePlatform =
Expand All @@ -57,6 +58,7 @@ export enum IntegrationType {
STACKOVERFLOW = 'stackoverflow',
DISCOURSE = 'discourse',
GIT = 'git',
OCTOLENS = 'octolens',
}

export const integrationLabel: Record<IntegrationType, string> = {
Expand All @@ -73,6 +75,7 @@ export const integrationLabel: Record<IntegrationType, string> = {
[IntegrationType.STACKOVERFLOW]: 'Stack Overflow',
[IntegrationType.DISCOURSE]: 'Discourse',
[IntegrationType.GIT]: 'Git',
[IntegrationType.OCTOLENS]: 'Octolens',
}

// Backup url from username if profile url not present in member.attributes.url
Expand All @@ -91,4 +94,5 @@ export const integrationProfileUrl: Record<IntegrationType, (username: string) =
[IntegrationType.STACKOVERFLOW]: (username) => `https://stackoverflow.com/users/${username}`,
[IntegrationType.DISCOURSE]: () => null,
[IntegrationType.GIT]: () => null,
[IntegrationType.OCTOLENS]: () => null,
}
Loading