MCPcopy
hub / github.com/epicweb-dev/epic-stack / deleteGitHubUser

Function deleteGitHubUser

tests/mocks/github.ts:83–89  ·  view source on GitHub ↗
(primaryEmail: string)

Source from the content-addressed store, hash-verified

81}
82
83export async function deleteGitHubUser(primaryEmail: string) {
84 const users = await getGitHubUsers()
85 const user = users.find((u) => u.primaryEmail === primaryEmail)
86 if (!user) return null
87 await setGitHubUsers(users.filter((u) => u.primaryEmail !== primaryEmail))
88 return user
89}
90
91export async function deleteGitHubUsers() {
92 await fsExtra.remove(githubUserFixturePath)

Callers 1

Calls 2

getGitHubUsersFunction · 0.85
setGitHubUsersFunction · 0.85

Tested by

no test coverage detected