MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / handleUser

Function handleUser

packages/integration-github/src/inbound.ts:127–133  ·  view source on GitHub ↗
(
  user: GitHubTypes.User,
  channel: { id: string; accountId: string }
)

Source from the content-addressed store, hash-verified

125}
126
127async function handleUser(
128 user: GitHubTypes.User,
129 channel: { id: string; accountId: string }
130) {
131 const parsedUser = Serializer.githubUserToLinenUser(user, channel.accountId);
132 return await linenSdk.findOrCreateUser(parsedUser);
133}
134
135async function handleIssuesOpened(payload: GitHubTypes.IssuesOpenedEvent) {
136 const thread = await handleIssue(payload);

Callers 2

handleIssueFunction · 0.70

Calls 2

githubUserToLinenUserMethod · 0.80
findOrCreateUserMethod · 0.80

Tested by

no test coverage detected