Skip to content

Commit f9a3d39

Browse files
committed
fix: inline isNoreplyEmail in utils to avoid @crowd/common in workflow bundle (CM-1137)
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
1 parent bb1ac36 commit f9a3d39

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • services/apps/merge_suggestions_worker/src

services/apps/merge_suggestions_worker/src/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
import { isNoreplyEmail } from '@crowd/common'
21
import { ILLMConsumableMember, PlatformType } from '@crowd/types'
32

43
import { EMAIL_AS_USERNAME_PLATFORMS } from './enums'
54

5+
function isNoreplyEmail(value: string): boolean {
6+
const lower = value.toLowerCase()
7+
return lower.endsWith('@users.noreply.github.com') || lower.endsWith('@users.noreply.gitlab.com')
8+
}
9+
610
export const prefixLength = (string: string) => {
711
if (string.length > 5 && string.length < 8) {
812
return 6

0 commit comments

Comments
 (0)